[openwrt/openwrt] mediatek: remove gpiod_direction_output()

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 11 12:28:08 PDT 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/a188356484f434c72ea536d91d7f93f59c562eb5

commit a188356484f434c72ea536d91d7f93f59c562eb5
Author: Sven Wegener <sven.wegener at stealer.net>
AuthorDate: Sat Jun 12 21:56:21 2021 +0200

    mediatek: remove gpiod_direction_output()
    
    It's already set to output with GPIOD_OUT_LOW.
    
    Signed-off-by: Sven Wegener <sven.wegener at stealer.net>
---
 target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c | 2 --
 1 file changed, 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 c5d668836b..9f12cda5d1 100644
--- a/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c
+++ b/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c
@@ -153,8 +153,6 @@ static int ubnt_ledbar_probe(struct i2c_client *client,
 		return ret;
 	}
 
-	gpiod_direction_output(ledbar->enable_gpio, 0);
-
 	ledbar->client = client;
 
 	mutex_init(&ledbar->lock);




More information about the lede-commits mailing list