You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Linus Walleij
parent
4fac724fd7
commit
cf9d994dcf
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user