diff options
author | 2018-10-18 01:14:32 +0100 | |
---|---|---|
committer | 2018-10-26 20:51:36 +0200 | |
commit | 72b8ad40e14302f869382656a914bb803796b4ed (patch) | |
tree | 3f2bab739a362e765d91759dee987bc8dd2173b1 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | leds: sc27xx: Add pattern_set/clear interfaces for LED controller (diff) | |
download | linux-dev-72b8ad40e14302f869382656a914bb803796b4ed.tar.xz linux-dev-72b8ad40e14302f869382656a914bb803796b4ed.zip |
leds: gpio: set led_dat->gpiod pointer for OF defined GPIO leds
Commit 45d4c6de4e49 ("leds: gpio: Try to lookup gpiod from device")
removed the common code path that set the led_dat->gpiod pointer in
create_gpio_led(), but only added it back for the devices that have
a valid gpio_led_platform_data structure. Calling gpio_leds_create()
in gpio_led_probe() is not enough to get a valid gpiod pointer.
Fortunately enough, gpio_leds_create() already gets the needed pointer,
we just need to assign it to the relevant gpio_led_data structure.
Fixes: 45d4c6de4e49 ("leds: gpio: Try to lookup gpiod from device")
Signed-off-by: Liviu Dudau <liviu@dudau.co.uk>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions