From: Linus Walleij Date: Wed, 16 Nov 2011 08:58:51 +0000 (+0100) Subject: pinctrl: print pin range in GPIO range debugs X-Git-Tag: next-20111118~3^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b47ac616cb2f7366572bff9cc785e988f2d06f3;p=karo-tx-linux.git 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 Signed-off-by: Linus Walleij --- 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) /* 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);