power: supply: rt9471: fix using wrong ce_gpio in rt9471_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 6 Feb 2023 12:20:18 +0000 (20:20 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 13 Feb 2023 20:28:56 +0000 (21:28 +0100)
commit1d6cdc47fec9f7935e04deb640b444e30322ca57
tree22f0f18e529857bb6b452b7e5251d60fcb43e0da
parenta915dfd099b7e324de60fcbc29ef373479c5f69e
power: supply: rt9471: fix using wrong ce_gpio in rt9471_probe()

Pass the correct 'ce_gpio' to IS_ERR(), and remove the ce_gpio in
chip data, make it all by SW control only, not to control by HW pin.

Fixes: 4a1a5f6781d8 ("power: supply: rt9471: Add Richtek RT9471 charger driver")
Reviewed-by: ChiYuan Huang <cy_huang@richtek.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/rt9471.c