On Thu, May 16, 2019 at 02:42:09PM -0700, Kun Yi wrote:
> GPIO number 0 is a valid case to handle. Use -1 as initial value
> and use gpio_is_valid() to determine validity of the GPIO
> number.
I think it's more sensible to convert to gpiod instead.
Best regards
Uwe
> Signed-off-by: Kun Yi
>
GPIO number 0 is a valid case to handle. Use -1 as initial value
and use gpio_is_valid() to determine validity of the GPIO
number.
Signed-off-by: Kun Yi
Change-Id: I4a29f98b237fd0d8ba4dd2a28219d4429f2ccfff
---
drivers/leds/trigger/ledtrig-gpio.c | 16 +---
1 file changed, 5
2 matches
Mail list logo