Skip to content

Commit 5d80a86

Browse files
ChiYuan Huangsre
authored andcommitted
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: 6f7f70e ("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>
1 parent fe20b1d commit 5d80a86

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/power/supply/rt9467-charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ static int rt9467_charger_probe(struct i2c_client *i2c)
11921192
i2c_set_clientdata(i2c, data);
11931193

11941194
/* Default pull charge enable gpio to make 'CHG_EN' by SW control only */
1195-
ceb_gpio = devm_gpiod_get_optional(dev, "charge-enable", GPIOD_OUT_LOW);
1195+
ceb_gpio = devm_gpiod_get_optional(dev, "charge-enable", GPIOD_OUT_HIGH);
11961196
if (IS_ERR(ceb_gpio))
11971197
return dev_err_probe(dev, PTR_ERR(ceb_gpio),
11981198
"Failed to config charge enable gpio\n");

0 commit comments

Comments
 (0)