]> git.baikalelectronics.ru Git - kernel.git/commit
leds: bd2802: Convert to use GPIO descriptors
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 9 Dec 2019 00:42:42 +0000 (01:42 +0100)
committerPavel <pavel@ucw.cz>
Sat, 21 Dec 2019 19:09:54 +0000 (20:09 +0100)
commit8c946d59a84bc68688d54a5dcaedd4caf48fb8f1
tree8b53dd0741987d057856df78ccc37004022a2cfa
parent6b72ff3caf72fbdf24abe9e5d0f78924a4848390
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>
drivers/leds/leds-bd2802.c
include/linux/leds-bd2802.h