summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorChiYuan Huang <cy_huang@richtek.com>2023-06-01 09:24:36 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2023-06-08 02:50:26 +0300
commit5d80a86a99d524b0d89ff3906c6200b9f57b66f8 (patch)
treec15afb52860615a32d15e5552d04e18913e10373 /drivers/power
parentfe20b1dcd2de47cdc983a47f4fb7a781e0b6c39c (diff)
downloadlinux-5d80a86a99d524b0d89ff3906c6200b9f57b66f8.tar.xz
power: supply: rt9467: Make charger-enable control as logic level
The current coding make 'charger-enable-gpio' control as real hardware level. This conflicts with the default binding example. For driver behavior, no need to use real hardware level, just logic level is enough. This change can make this flexibility keep in dts gpio active level about this pin. Fixes: 6f7f70e3a8dd ("power: supply: rt9467: Add Richtek RT9467 charger driver") Signed-off-by: ChiYuan Huang <cy_huang@richtek.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/rt9467-charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rt9467-charger.c b/drivers/power/supply/rt9467-charger.c
index 9ef759a9eb2e..e80c51f84d76 100644
--- a/drivers/power/supply/rt9467-charger.c
+++ b/drivers/power/supply/rt9467-charger.c
@@ -1192,7 +1192,7 @@ static int rt9467_charger_probe(struct i2c_client *i2c)
i2c_set_clientdata(i2c, data);
/* Default pull charge enable gpio to make 'CHG_EN' by SW control only */
- ceb_gpio = devm_gpiod_get_optional(dev, "charge-enable", GPIOD_OUT_LOW);
+ ceb_gpio = devm_gpiod_get_optional(dev, "charge-enable", GPIOD_OUT_HIGH);
if (IS_ERR(ceb_gpio))
return dev_err_probe(dev, PTR_ERR(ceb_gpio),
"Failed to config charge enable gpio\n");