power: supply: max17040: remove non-working POWER_SUPPLY_PROP_STATUS
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 7 May 2021 16:19:25 +0000 (12:19 -0400)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 4 Jun 2021 11:11:37 +0000 (13:11 +0200)
commitc603bec359aece14c5e74a4aa174822692fba7d6
tree8056df422255068eaa57e58712d475f15b65b967
parent8ef9f687abff3b8e44578b810a74fdcf753478f3
power: supply: max17040: remove non-working POWER_SUPPLY_PROP_STATUS

The driver was reporting POWER_SUPPLY_PROP_STATUS via platform data
functions.  Without platform data, the max17040_get_status() functions
returns early with POWER_SUPPLY_STATUS_UNKNOWN.  Since there are no
platforms using the driver with platform data (no board files with the
driver), the status property was always unknown.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17040_battery.c