[PATCH] pinctrl: bcm2835: Start GPIO numeration at zero
Lee Jones
ljkenny at gmail.com
Mon Oct 27 13:33:17 PDT 2014
On Mon, 27 Oct 2014, Matthias Klein wrote:
> Numerate the GPIOs from 0..54 instead of 202..255.
>
> Signed-off-by: Matthias Klein <matthias.klein at linux.com>
> ---
> drivers/pinctrl/pinctrl-bcm2835.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Patch looks okay, but you need to send this to the Pinctrl maintainer
Linus Walleij, and all patches must also be CC'ed to LKML.
For the patch:
Acked-by: Lee Jones <lee.jones at linaro.org>
> diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c
> index 5bcfd7a..c183d0f 100644
> --- a/drivers/pinctrl/pinctrl-bcm2835.c
> +++ b/drivers/pinctrl/pinctrl-bcm2835.c
> @@ -382,7 +382,7 @@ static struct gpio_chip bcm2835_gpio_chip = {
> .get = bcm2835_gpio_get,
> .set = bcm2835_gpio_set,
> .to_irq = bcm2835_gpio_to_irq,
> - .base = -1,
> + .base = 0,
> .ngpio = BCM2835_NUM_GPIOS,
> .can_sleep = false,
> };
More information about the linux-rpi-kernel
mailing list