power: smbcharger-mmi: Change Power Supply Type

To prevent invalid reporting by healthd, switch to
POWER_SUPPLY_TYPE_MAIN so that it does not
accidentally use mmi_battery as the reporting interface.

Change-Id: Iaf0f2b37de02932994d5826c5b7f2aff777b8d28
Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com>
Reviewed-on: https://gerrit.mot.com/1221855
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:41:11 -05:00 • committed by Kenneth Kessler
commit 7cae21ac9e

View file

@ -1100,7 +1100,7 @@ static int smbchg_reboot(struct notifier_block *nb,
static const struct power_supply_desc mmi_psy_desc = {
.name = "mmi_battery",
.type = POWER_SUPPLY_TYPE_BATTERY,
.type = POWER_SUPPLY_TYPE_MAIN,
.get_property = smb_mmi_get_property,
.properties = smb_mmi_battery_props,
.num_properties = ARRAY_SIZE(smb_mmi_battery_props),