power: supply: rt9467: Make charger-enable control as logic level
authorChiYuan Huang <cy_huang@richtek.com>
Thu, 1 Jun 2023 06:24:36 +0000 (14:24 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 7 Jun 2023 23:50:26 +0000 (01:50 +0200)
commit5d80a86a99d524b0d89ff3906c6200b9f57b66f8
treec15afb52860615a32d15e5552d04e18913e10373
parentfe20b1dcd2de47cdc983a47f4fb7a781e0b6c39c
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>
drivers/power/supply/rt9467-charger.c