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 <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1221854
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Curtis Porter <porterc@motorola.com>
Reviewed-by: Kenneth Kessler <kennykessler@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Kenny Kessler 2018-08-06 16:19:35 -05:00 • committed by Kenneth Kessler
commit 2924498e51

View file

@ -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,