]> www.infradead.org Git - users/jedix/linux-maple.git/commit
power: supply: sc27xx: Fix battery detect GPIO probe
authorStanislav Jakubek <stano.jakubek@gmail.com>
Mon, 4 Nov 2024 13:04:27 +0000 (14:04 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 11 Nov 2024 22:05:19 +0000 (23:05 +0100)
commitf29cc6d9a3917f98f1fb109f0c8841dd095f3fb0
tree559e0b540e58298d49985ac15c4373136ecb8e13
parent2da0cb9f03bd9b726fa1b4accb210ef2ab439925
power: supply: sc27xx: Fix battery detect GPIO probe

The DT bindings specify the property as 'battery-detect-gpios', add
handling for it. Keep fallback to the deprecated 'bat-detect-gpio' property
to keep compatibility with older DTS.

Signed-off-by: Stanislav Jakubek <stano.jakubek@gmail.com>
Link: https://lore.kernel.org/r/ca28b2f2037929c0011fc5c779c332c1d1ad5308.1730720720.git.stano.jakubek@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/sc27xx_fuel_gauge.c