Re: [PATCH] gpiolib: let gpiochip_add_pin_range() specify offset

2012-11-20 Thread Linus Walleij
On Tue, Nov 20, 2012 at 6:24 PM, Stephen Warren wrote: > On 11/20/2012 04:45 AM, Linus Walleij wrote: >> From: Linus Walleij >> >> Like with commit 3c739ad0df5eb41cd7adad879eda6aa09879eb76 >> it is not always enough to specify all the pins of a gpio_chip >> from offset zero to be added to a pin m

Re: [PATCH] gpiolib: let gpiochip_add_pin_range() specify offset

2012-11-20 Thread Stephen Warren
On 11/20/2012 04:45 AM, Linus Walleij wrote: > From: Linus Walleij > > Like with commit 3c739ad0df5eb41cd7adad879eda6aa09879eb76 > it is not always enough to specify all the pins of a gpio_chip > from offset zero to be added to a pin map range, since the > mapping from GPIO to pin controller may

Re: [PATCH] gpiolib: let gpiochip_add_pin_range() specify offset

2012-11-20 Thread Linus Walleij
On Tue, Nov 20, 2012 at 1:55 PM, Viresh Kumar wrote: > On 20 November 2012 17:15, Linus Walleij wrote: >> From: Linus Walleij >> >> Like with commit 3c739ad0df5eb41cd7adad879eda6aa09879eb76 >> it is not always enough to specify all the pins of a gpio_chip >> from offset zero to be added to a pin

Re: [PATCH] gpiolib: let gpiochip_add_pin_range() specify offset

2012-11-20 Thread Viresh Kumar
On 20 November 2012 17:15, Linus Walleij wrote: > From: Linus Walleij > > Like with commit 3c739ad0df5eb41cd7adad879eda6aa09879eb76 > it is not always enough to specify all the pins of a gpio_chip > from offset zero to be added to a pin map range, since the > mapping from GPIO to pin controller m

[PATCH] gpiolib: let gpiochip_add_pin_range() specify offset

2012-11-20 Thread Linus Walleij
From: Linus Walleij Like with commit 3c739ad0df5eb41cd7adad879eda6aa09879eb76 it is not always enough to specify all the pins of a gpio_chip from offset zero to be added to a pin map range, since the mapping from GPIO to pin controller may not be linear at all, but need to be broken into a few co