aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2011-11-16 03:58:51 -0500
committerLinus Walleij <linus.walleij@linaro.org>2012-01-03 03:10:01 -0500
commit75d6642a3ee1dfe2552028997cdcc2c4207bec8f (patch)
tree1af5757a9b9bc34971b046f8e0b7599331d20066 /drivers/pinctrl
parent3c739ad0df5eb41cd7adad879eda6aa09879eb76 (diff)
pinctrl: print pin range in GPIO range debugs
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>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 678216652bc0..4955a68d618f 100644
--- 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)
394 /* Loop over the ranges */ 394 /* Loop over the ranges */
395 mutex_lock(&pctldev->gpio_ranges_lock); 395 mutex_lock(&pctldev->gpio_ranges_lock);
396 list_for_each_entry(range, &pctldev->gpio_ranges, node) { 396 list_for_each_entry(range, &pctldev->gpio_ranges, node) {
397 seq_printf(s, "%u: %s [%u - %u]\n", range->id, range->name, 397 seq_printf(s, "%u: %s GPIOS [%u - %u] PINS [%u - %u]\n",
398 range->base, (range->base + range->npins - 1)); 398 range->id, range->name,
399 range->base, (range->base + range->npins - 1),
400 range->pin_base,
401 (range->pin_base + range->npins - 1));
399 } 402 }
400 mutex_unlock(&pctldev->gpio_ranges_lock); 403 mutex_unlock(&pctldev->gpio_ranges_lock);
401 404