mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
f3cbb755a7
commit
2924498e51
1 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue