Re: [PATCH] mfd: rdc321x: Fix off-by-one for ngpio setting

2014-04-28 Thread Lee Jones
> The valid gpio is GPIO0 ~ GPIO58, so ngpio should be 59. > This patch also renames RDC321X_MAX_GPIO to RDC321X_NUM_GPIO because it > actually means the number of available GPIOs. > > Signed-off-by: Axel Lin > Acked-by: Linus Walleij > --- > drivers/mfd/rdc321x-southbridge.c | 2 +- > include/

[PATCH] mfd: rdc321x: Fix off-by-one for ngpio setting

2014-04-24 Thread Axel Lin
The valid gpio is GPIO0 ~ GPIO58, so ngpio should be 59. This patch also renames RDC321X_MAX_GPIO to RDC321X_NUM_GPIO because it actually means the number of available GPIOs. Signed-off-by: Axel Lin Acked-by: Linus Walleij --- drivers/mfd/rdc321x-southbridge.c | 2 +- include/linux/mfd/rdc321x.