summaryrefslogtreecommitdiff
path: root/include/linux/leds-bd2802.h
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-12-09 03:42:42 +0300
committerPavel <pavel@ucw.cz>2019-12-21 22:09:54 +0300
commit4c3718f9d6a6f6557b6e5564af8bd90130123fb8 (patch)
tree8b53dd0741987d057856df78ccc37004022a2cfa /include/linux/leds-bd2802.h
parent697529091ac7a0a90ca349b914bb30641c13c753 (diff)
downloadlinux-4c3718f9d6a6f6557b6e5564af8bd90130123fb8.tar.xz
leds: bd2802: Convert to use GPIO descriptors
The Rohm BD2802 have no in-kernel users so we can drop the GPIO number from the platform data and require users to provide the GPIO line using machine descriptors. As the descriptors come with inherent polarity inversion semantics, we invert the calls to set the GPIO line such that 0 means "unasserted" and 1 means "asserted". Put a note in the driver that machine descriptor tables will need to specify that the line is active low. Cc: Kim Kyuwon <chammoru@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'include/linux/leds-bd2802.h')
-rw-r--r--include/linux/leds-bd2802.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/leds-bd2802.h b/include/linux/leds-bd2802.h
index dd93c8d787b4..ec577f5f8707 100644
--- a/include/linux/leds-bd2802.h
+++ b/include/linux/leds-bd2802.h
@@ -11,7 +11,6 @@
#define _LEDS_BD2802_H_
struct bd2802_led_platform_data{
- int reset_gpio;
u8 rgb_time;
};