Re: [PATCH] gpio: add flags argument to gpiod_get*() functions

2014-08-03 Thread Alexandre Courbot
On Thu, Jul 31, 2014 at 12:43 PM, Alexandre Courbot wrote: > On Mon, Jul 28, 2014 at 7:30 PM, Linus Walleij > wrote: >> On Fri, Jul 25, 2014 at 4:38 PM, Alexandre Courbot >> wrote: >> >>> The huge majority of GPIOs have their direction and initial value set >>> right after being obtained by on

Re: [PATCH] gpio: add flags argument to gpiod_get*() functions

2014-07-30 Thread Alexandre Courbot
On Mon, Jul 28, 2014 at 7:30 PM, Linus Walleij wrote: > On Fri, Jul 25, 2014 at 4:38 PM, Alexandre Courbot > wrote: > >> The huge majority of GPIOs have their direction and initial value set >> right after being obtained by one of the gpiod_get() functions. The >> integer GPIO API had gpio_reque

Re: [PATCH] gpio: add flags argument to gpiod_get*() functions

2014-07-28 Thread Linus Walleij
On Fri, Jul 25, 2014 at 4:38 PM, Alexandre Courbot wrote: > The huge majority of GPIOs have their direction and initial value set > right after being obtained by one of the gpiod_get() functions. The > integer GPIO API had gpio_request_one() that took a convenience flags > parameter allowing to s

Re: [PATCH] gpio: add flags argument to gpiod_get*() functions

2014-07-25 Thread Mark Brown
On Fri, Jul 25, 2014 at 11:38:36PM +0900, Alexandre Courbot wrote: > The huge majority of GPIOs have their direction and initial value set > right after being obtained by one of the gpiod_get() functions. The > integer GPIO API had gpio_request_one() that took a convenience flags > parameter allowi

[PATCH] gpio: add flags argument to gpiod_get*() functions

2014-07-25 Thread Alexandre Courbot
The huge majority of GPIOs have their direction and initial value set right after being obtained by one of the gpiod_get() functions. The integer GPIO API had gpio_request_one() that took a convenience flags parameter allowing to specify an direction and value applied to the returned GPIO. This fea