Re: [PATCH] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-02-28 Thread Charles Keepax
On Mon, Feb 27, 2017 at 11:13:59AM +0900, Tomasz Figa wrote: > > diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c > > b/drivers/pinctrl/samsung/pinctrl-samsung.c > > index ddc8d6b..864d8b4d 100644 > > --- a/drivers/pinctrl/samsung/pinctrl-samsung.c > > +++ b/drivers/pinctrl/samsung/pinctrl-s

Re: [PATCH] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-02-26 Thread Tomasz Figa
Hi Charles, 2017-02-24 2:54 GMT+09:00 Charles Keepax : > As the pinctrl is now added before the GPIOs are registered we need to > manually calculate what the GPIO base will be, otherwise the base for > each gpio_range will be set to zero. Fortunately the driver > already assigns a GPIO base, in sa

[PATCH] pinctrl: samsung: Calculate GPIO base for pinctrl_add_gpio_range

2017-02-23 Thread Charles Keepax
As the pinctrl is now added before the GPIOs are registered we need to manually calculate what the GPIO base will be, otherwise the base for each gpio_range will be set to zero. Fortunately the driver already assigns a GPIO base, in samsung_gpiolib_register, and uses the same calculation it does fo