Commit ce0ae832 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel

power: supply: max17040: simplify POWER_SUPPLY_PROP_ONLINE

The driver was reporting POWER_SUPPLY_PROP_ONLINE via platform data
functions or '1' if no platform data was provided.  Since there are no
platforms using the driver with platform data (no board files with the
driver), the online property can be simplified to always return '1'.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent c603bec3
...@@ -219,8 +219,7 @@ static int max17040_get_version(struct max17040_chip *chip) ...@@ -219,8 +219,7 @@ static int max17040_get_version(struct max17040_chip *chip)
static int max17040_get_online(struct max17040_chip *chip) static int max17040_get_online(struct max17040_chip *chip)
{ {
return chip->pdata && chip->pdata->battery_online ? return 1;
chip->pdata->battery_online() : 1;
} }
static int max17040_get_of_data(struct max17040_chip *chip) static int max17040_get_of_data(struct max17040_chip *chip)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment