projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c739ad
)
pinctrl: print pin range in GPIO range debugs
author
Linus Walleij
<linus.walleij@linaro.org>
Wed, 16 Nov 2011 08:58:51 +0000
(09:58 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 3 Jan 2012 08:10:01 +0000
(09:10 +0100)
Show the mapped pin range corresponding to the GPIO range in
debugfs for pin controllers.
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pinctrl/core.c
b/drivers/pinctrl/core.c
index 678216652bc0cf4bbdf0661286109279ffc37a60..4955a68d618fade5681f915bbdedcfb0f62eb862 100644
(file)
--- a/
drivers/pinctrl/core.c
+++ b/
drivers/pinctrl/core.c
@@
-394,8
+394,11
@@
static int pinctrl_gpioranges_show(struct seq_file *s, void *what)
/* Loop over the ranges */
mutex_lock(&pctldev->gpio_ranges_lock);
list_for_each_entry(range, &pctldev->gpio_ranges, node) {
- seq_printf(s, "%u: %s [%u - %u]\n", range->id, range->name,
- range->base, (range->base + range->npins - 1));
+ seq_printf(s, "%u: %s GPIOS [%u - %u] PINS [%u - %u]\n",
+ range->id, range->name,
+ range->base, (range->base + range->npins - 1),
+ range->pin_base,
+ (range->pin_base + range->npins - 1));
}
mutex_unlock(&pctldev->gpio_ranges_lock);