]> git.baikalelectronics.ru Git - kernel.git/commit
leds: gpio: Fix semantic error
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 3 Jul 2020 18:13:38 +0000 (20:13 +0200)
committerPavel Machek <pavel@ucw.cz>
Sun, 12 Jul 2020 08:14:05 +0000 (10:14 +0200)
commitab7d20a160fbadb6a314c7ed04e14f248b4c47e8
treef152899a4d5850b376306ad2da87080fd0dd83ef
parentbf49463b7477ad19cc5f0b82826fcbd652865577
leds: gpio: Fix semantic error

The leds-gpio driver mixes up the legacy GPIO flags with the
GPIO descriptor flags and passes a legacy flag to
devm_gpiod_get_index().

Fix this by replacing the flags variable with the strict
descriptor flag.

Fixes: cad631f834c6 ("leds: gpio: Try to lookup gpiod from device")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-gpio.c