diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2021-06-12 21:56:21 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-11 20:26:41 +0100 |
commit | 56c2d15587dfe5285f1cf3bfb236c827bc446465 (patch) | |
tree | 0f54912f80556c2ef39071d83d4b8436e493f011 /target/linux | |
parent | 4133102898502c9bb453e8603b6c891aa103bce4 (diff) | |
download | upstream-56c2d15587dfe5285f1cf3bfb236c827bc446465.tar.gz upstream-56c2d15587dfe5285f1cf3bfb236c827bc446465.tar.bz2 upstream-56c2d15587dfe5285f1cf3bfb236c827bc446465.zip |
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@stealer.net>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c b/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c index 9c68d40eec..c5d668836b 100644 --- a/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c +++ b/target/linux/mediatek/files/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); |