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:
mahj8 2020-10-28 11:07:48 +08:00 • committed by Xiaojun Ji
commit 07453b7c34

View file

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