OSDN Git Service

leds: lp55xx: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 26 Jun 2020 22:40:11 +0000 (00:40 +0200)
committerPavel Machek <pavel@ucw.cz>
Sun, 12 Jul 2020 07:52:22 +0000 (09:52 +0200)
commitac219bf3c9bdf9200767e8c98a56ad42c75e5cd5
tree8ce6b5b074223c73c36d92ebe73a8aa7947dac34
parente190f57df3c7e7713687905c14e72fbcbd81c5e4
leds: lp55xx: Convert to use GPIO descriptors

The LP55xx driver is already using the of_gpio() functions to
pick a global GPIO number for "enable" from the device tree and
request the line. Simplify it by just using a GPIO descriptor.

Make sure to keep the enable GPIO line optional, change the
naming from "lp5523_enable" to "LP55xx enable" to reflect that
this is used on all LP55xx LED drivers.

Cc: Milo Kim <milo.kim@ti.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/leds-lp55xx-common.c
include/linux/platform_data/leds-lp55xx.h