diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-05-24 14:26:26 +0900 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-05-31 10:19:56 +0200 |
commit | cf9d994dcf00c09c73eb686e239ab6449a248719 (patch) | |
tree | 45c00681c4a16285e0a3e194717060e9a69d1e03 /drivers/pinctrl/core.c | |
parent | 4fac724fd76623c65ad00b412f5c7d0a816b98ff (diff) | |
download | linux-stable-cf9d994dcf00c09c73eb686e239ab6449a248719.tar.gz linux-stable-cf9d994dcf00c09c73eb686e239ab6449a248719.tar.bz2 linux-stable-cf9d994dcf00c09c73eb686e239ab6449a248719.zip |
pinctrl: do not care about blank pin name
If a pin name is not specified in struct pinctrl_pin_desc,
pinctrl_register_one_pin() dynamically assigns its name.
So, desc->name is always a valid pointer here.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/core.c')
-rw-r--r-- | drivers/pinctrl/core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 98d2a1bb44cb..03c08c156744 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -1367,8 +1367,7 @@ static int pinctrl_pins_show(struct seq_file *s, void *what) if (desc == NULL) continue; - seq_printf(s, "pin %d (%s) ", pin, - desc->name ? desc->name : "unnamed"); + seq_printf(s, "pin %d (%s) ", pin, desc->name); /* Driver-specific info per pin */ if (ops->pin_dbg_show) |