mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
power: qpnp-smb5: Change Power supply
Move "battery" to "qcom_battery" and change type from BATTERY to MAIN. This will allow another driver to control "battery" and the system will passthrough it to get the information. Change-Id: I5409be01d769805065a64d05fb5b1666c81fed6b Signed-off-by: mahj8 <mahj8@lenovo.com> Reviewed-on: https://gerrit.mot.com/1786691 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai <chailu1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ac9e62a015
commit
07453b7c34
1 changed files with 2 additions and 2 deletions
|
|
@ -1433,8 +1433,8 @@ static int smb5_batt_prop_is_writeable(struct power_supply *psy,
|
|||
}
|
||||
|
||||
static const struct power_supply_desc batt_psy_desc = {
|
||||
.name = "battery",
|
||||
.type = POWER_SUPPLY_TYPE_BATTERY,
|
||||
.name = "qcom_battery",
|
||||
.type = POWER_SUPPLY_TYPE_MAINS,
|
||||
.properties = smb5_batt_props,
|
||||
.num_properties = ARRAY_SIZE(smb5_batt_props),
|
||||
.get_property = smb5_batt_get_prop,
|
||||
|
|
|
|||
Loading…
Reference in a new issue