Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294082
b: refs/heads/master
c: 1cf94c4
h: refs/heads/master
v: v3
  • Loading branch information
Linus Walleij committed Feb 29, 2012
1 parent 6104b45 commit 007ee27
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2304b4737f492b6ee9b714d8129e153af0bef989
refs/heads/master: 1cf94c45ca31c0ad563e72b095782346cba26b6c
11 changes: 8 additions & 3 deletions trunk/drivers/pinctrl/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,18 +626,23 @@ static int pinmux_pins_show(struct seq_file *s, void *what)

/* The pin number can be retrived from the pin controller descriptor */
for (i = 0; i < pctldev->desc->npins; i++) {

struct pin_desc *desc;
bool is_hog = false;

pin = pctldev->desc->pins[i].number;
desc = pin_desc_get(pctldev, pin);
/* Skip if we cannot search the pin */
if (desc == NULL)
continue;

seq_printf(s, "pin %d (%s): %s\n", pin,
if (desc->owner &&
!strcmp(desc->owner, pinctrl_dev_get_name(pctldev)))
is_hog = true;

seq_printf(s, "pin %d (%s): %s%s\n", pin,
desc->name ? desc->name : "unnamed",
desc->owner ? desc->owner : "UNCLAIMED");
desc->owner ? desc->owner : "UNCLAIMED",
is_hog ? " (HOG)" : "");
}

return 0;
Expand Down

0 comments on commit 007ee27

Please sign in to comment.