[openwrt/openwrt] mediatek: do not use gpiod_set_raw_value()
LEDE Commits
lede-commits at lists.infradead.org
Sun Sep 18 19:13:26 PDT 2022
dangole pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/ba6c780acb4b70fae4b8bf4d748403284bd648ab
commit ba6c780acb4b70fae4b8bf4d748403284bd648ab
Author: Sven Wegener <sven.wegener at stealer.net>
AuthorDate: Sat Jun 12 21:56:21 2021 +0200
mediatek: do not use gpiod_set_raw_value()
The polarity of the signal is set in the device dts.
Signed-off-by: Sven Wegener <sven.wegener at stealer.net>
(cherry picked from commit 56c2d15587dfe5285f1cf3bfb236c827bc446465)
---
target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c b/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c
index 9c68d40eec..c5d668836b 100644
--- a/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c
+++ b/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c
@@ -68,7 +68,7 @@ static int ubnt_ledbar_apply_state(struct ubnt_ledbar *ledbar)
led_msg[UBNT_LEDBAR_TRANSACTION_GREEN_IDX] = ledbar->led_green.brightness;
led_msg[UBNT_LEDBAR_TRANSACTION_RED_IDX] = ledbar->led_red.brightness;
- gpiod_set_raw_value(ledbar->enable_gpio, 1);
+ gpiod_set_value(ledbar->enable_gpio, 1);
msleep(10);
@@ -88,7 +88,7 @@ static int ubnt_ledbar_apply_state(struct ubnt_ledbar *ledbar)
msleep(10);
out_gpio:
- gpiod_set_raw_value(ledbar->enable_gpio, 0);
+ gpiod_set_value(ledbar->enable_gpio, 0);
mutex_unlock(&ledbar->lock);
More information about the lede-commits
mailing list