summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/sh-pfc/gpio.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-12-11 04:26:21 +0100
committerLinus Walleij <linus.walleij@linaro.org>2013-12-12 22:06:49 +0100
commit8d72a7fc8dd74d41ec5f37b70797679e910007e0 (patch)
tree5d7a806e8065204b73fb6024225f4eaf6678599d /drivers/pinctrl/sh-pfc/gpio.c
parentpinctrl: pinconf: remove checks on ops->pin_config_get (diff)
downloadlinux-8d72a7fc8dd74d41ec5f37b70797679e910007e0.tar.xz
linux-8d72a7fc8dd74d41ec5f37b70797679e910007e0.zip
sh-pfc: Turn unsigned indices into unsigned int
Some indices take positive values only, make them unsigned. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Magnus Damm <damm@opensource.se> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/gpio.c')
-rw-r--r--drivers/pinctrl/sh-pfc/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/sh-pfc/gpio.c b/drivers/pinctrl/sh-pfc/gpio.c
index 04bf52b64fb3..3d30e6ecdf4a 100644
--- a/drivers/pinctrl/sh-pfc/gpio.c
+++ b/drivers/pinctrl/sh-pfc/gpio.c
@@ -204,7 +204,7 @@ static void gpio_pin_set(struct gpio_chip *gc, unsigned offset, int value)
static int gpio_pin_to_irq(struct gpio_chip *gc, unsigned offset)
{
struct sh_pfc *pfc = gpio_to_pfc(gc);
- int i, k;
+ unsigned int i, k;
for (i = 0; i < pfc->info->gpio_irq_size; i++) {
unsigned short *gpios = pfc->info->gpio_irq[i].gpios;