From 2924498e51193d9b4ff6a33d64ce469cd90a4d32 Mon Sep 17 00:00:00 2001 From: Kenny Kessler Date: Mon, 6 Aug 2018 16:19:35 -0500 Subject: [PATCH] power: max170xx: Change Power Supply Type To prevent invalid reporting by healthd, switch to POWER_SUPPLY_TYPE_MAIN so that it does not accidentally use max170xx as the reporting interface. Change-Id: Ic4c5815a31a0fd00345bb45d58a3c51474ef1629 Signed-off-by: Kenny Kessler Reviewed-on: https://gerrit.mot.com/1221854 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Curtis Porter Reviewed-by: Kenneth Kessler Submit-Approved: Jira Key --- drivers/power/max170xx/max170xx_battery_mmi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/power/max170xx/max170xx_battery_mmi.c b/drivers/power/max170xx/max170xx_battery_mmi.c index eccbd674ad6b..2de9620be042 100644 --- a/drivers/power/max170xx/max170xx_battery_mmi.c +++ b/drivers/power/max170xx/max170xx_battery_mmi.c @@ -2220,7 +2220,7 @@ static const struct regmap_config max17042_regmap_config = { static const struct power_supply_desc max17042_psy_desc = { .name = "max170xx_battery", - .type = POWER_SUPPLY_TYPE_BATTERY, + .type = POWER_SUPPLY_TYPE_MAIN, .get_property = max17042_get_property, .set_property = max17042_set_property, .property_is_writeable = max17042_is_writeable, @@ -2230,7 +2230,7 @@ static const struct power_supply_desc max17042_psy_desc = { static const struct power_supply_desc max17042_main_psy_desc = { .name = "max17_main_battery", - .type = POWER_SUPPLY_TYPE_BATTERY, + .type = POWER_SUPPLY_TYPE_MAIN, .get_property = max17042_get_property, .set_property = max17042_set_property, .property_is_writeable = max17042_is_writeable, @@ -2240,7 +2240,7 @@ static const struct power_supply_desc max17042_main_psy_desc = { static const struct power_supply_desc max17042_flip_psy_desc = { .name = "max17_flip_battery", - .type = POWER_SUPPLY_TYPE_BATTERY, + .type = POWER_SUPPLY_TYPE_MAIN, .get_property = max17042_get_property, .set_property = max17042_set_property, .property_is_writeable = max17042_is_writeable, @@ -2250,7 +2250,7 @@ static const struct power_supply_desc max17042_flip_psy_desc = { static const struct power_supply_desc max17042_no_current_sense_psy_desc = { .name = "max170xx_battery", - .type = POWER_SUPPLY_TYPE_BATTERY, + .type = POWER_SUPPLY_TYPE_MAIN, .get_property = max17042_get_property, .set_property = max17042_set_property, .property_is_writeable = max17042_is_writeable,