diff options
-rw-r--r-- | drivers/pinctrl/pinmux.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 98b89d6cffb0..2a405618b448 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c | |||
@@ -626,8 +626,8 @@ static int pinmux_pins_show(struct seq_file *s, void *what) | |||
626 | 626 | ||
627 | /* The pin number can be retrived from the pin controller descriptor */ | 627 | /* The pin number can be retrived from the pin controller descriptor */ |
628 | for (i = 0; i < pctldev->desc->npins; i++) { | 628 | for (i = 0; i < pctldev->desc->npins; i++) { |
629 | |||
630 | struct pin_desc *desc; | 629 | struct pin_desc *desc; |
630 | bool is_hog = false; | ||
631 | 631 | ||
632 | pin = pctldev->desc->pins[i].number; | 632 | pin = pctldev->desc->pins[i].number; |
633 | desc = pin_desc_get(pctldev, pin); | 633 | desc = pin_desc_get(pctldev, pin); |
@@ -635,9 +635,14 @@ static int pinmux_pins_show(struct seq_file *s, void *what) | |||
635 | if (desc == NULL) | 635 | if (desc == NULL) |
636 | continue; | 636 | continue; |
637 | 637 | ||
638 | seq_printf(s, "pin %d (%s): %s\n", pin, | 638 | if (desc->owner && |
639 | !strcmp(desc->owner, pinctrl_dev_get_name(pctldev))) | ||
640 | is_hog = true; | ||
641 | |||
642 | seq_printf(s, "pin %d (%s): %s%s\n", pin, | ||
639 | desc->name ? desc->name : "unnamed", | 643 | desc->name ? desc->name : "unnamed", |
640 | desc->owner ? desc->owner : "UNCLAIMED"); | 644 | desc->owner ? desc->owner : "UNCLAIMED", |
645 | is_hog ? " (HOG)" : ""); | ||
641 | } | 646 | } |
642 | 647 | ||
643 | return 0; | 648 | return 0; |