Re: [RFC 1/5] gpiolib: factorize gpiod_get/set functions

2013-09-21 Thread Alexandre Courbot
On Fri, Sep 20, 2013 at 5:36 PM, Linus Walleij wrote: > On Wed, Sep 4, 2013 at 1:29 PM, Alexandre Courbot wrote: > >> gpiod_get/set functions share common code between their regular and >> cansleep variants. The exporting of the gpiod interface will make >> the situation worse. This patch factori

Re: [RFC 1/5] gpiolib: factorize gpiod_get/set functions

2013-09-20 Thread Linus Walleij
On Wed, Sep 4, 2013 at 1:29 PM, Alexandre Courbot wrote: > gpiod_get/set functions share common code between their regular and > cansleep variants. The exporting of the gpiod interface will make > the situation worse. This patch factorizes the common code to avoid code > redundancy. > > Signed-of

[RFC 1/5] gpiolib: factorize gpiod_get/set functions

2013-09-04 Thread Alexandre Courbot
gpiod_get/set functions share common code between their regular and cansleep variants. The exporting of the gpiod interface will make the situation worse. This patch factorizes the common code to avoid code redundancy. Signed-off-by: Alexandre Courbot --- drivers/gpio/gpiolib.c | 72