Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-04-27 Thread Alexandre Courbot
On Tue, Apr 28, 2015 at 3:45 PM, Uwe Kleine-König wrote: > Hello, > > On Tue, Apr 28, 2015 at 12:31:37PM +0900, Alexandre Courbot wrote: >> On Tue, Apr 28, 2015 at 12:21 AM, Uwe Kleine-König >> wrote: >> > On Thu, Apr 09, 2015 at 11:20:55AM +0900, Alexandre Courbot wrote: >> >> Having GPIO disabl

Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-04-27 Thread Uwe Kleine-König
Hello, On Tue, Apr 28, 2015 at 12:31:37PM +0900, Alexandre Courbot wrote: > On Tue, Apr 28, 2015 at 12:21 AM, Uwe Kleine-König > wrote: > > On Thu, Apr 09, 2015 at 11:20:55AM +0900, Alexandre Courbot wrote: > >> Having GPIO disabled means there is no GPIO support, including the > >> ability to lo

Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-04-27 Thread Alexandre Courbot
On Tue, Apr 28, 2015 at 12:21 AM, Uwe Kleine-König wrote: > Hello, > > On Thu, Apr 09, 2015 at 11:20:55AM +0900, Alexandre Courbot wrote: >> I should have replied one month ago, but if gpiolib is disabled, how >> can we use gpiolib-like logic to check the existence of a GPIO? >> >> Having GPIO dis

Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-04-27 Thread Uwe Kleine-König
Hello, On Thu, Apr 09, 2015 at 11:20:55AM +0900, Alexandre Courbot wrote: > I should have replied one month ago, but if gpiolib is disabled, how > can we use gpiolib-like logic to check the existence of a GPIO? > > Having GPIO disabled means there is no GPIO support, including the > ability to lo

Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-04-27 Thread Linus Walleij
On Thu, Apr 9, 2015 at 4:20 AM, Alexandre Courbot wrote: > Having GPIO disabled means there is no GPIO support, including the > ability to look for GPIOs. -ENOSYS is a well-documented error-code > which meaning also applies to the gpio_*_optional functions (we don't > have support for the operati

Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-04-08 Thread Alexandre Courbot
On Fri, Mar 6, 2015 at 5:59 PM, Uwe Kleine-König wrote: > Hello, > > On Fri, Mar 06, 2015 at 09:26:26AM +0100, Linus Walleij wrote: >> On Thu, Feb 12, 2015 at 10:03 AM, Uwe Kleine-König >> wrote: >> >> > I wonder if gpiod_get_optional et all should be changed to return NULL >> > instead. >> >> Th

Re: [PATCH] RFC: let gpiod_get_optional et all return NULL when GPIOLIB is not enabled

2015-03-09 Thread Linus Walleij
On Fri, Mar 6, 2015 at 9:59 AM, Uwe Kleine-König wrote: > On Fri, Mar 06, 2015 at 09:26:26AM +0100, Linus Walleij wrote: >> On Thu, Feb 12, 2015 at 10:03 AM, Uwe Kleine-König >> wrote: >> >> > I wonder if gpiod_get_optional et all should be changed to return NULL >> > instead. >> >> This is actua