bq25890_mmi: Fix power supply type
Fix the power supply type to make it unknown, we don't want Android to think we have a second USB charger. Also restore the voltage prop which was removed by accident. Change-Id: I311c968bc237396b7e5f4525cd5112ef50acf5ac Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1916388 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
ddede42491
commit
ea74da3f4a
1 changed files with 2 additions and 1 deletions
|
@ -742,6 +742,7 @@ static enum power_supply_property bq25890_power_supply_props[] = {
|
|||
POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE,
|
||||
POWER_SUPPLY_PROP_CONSTANT_CHARGE_VOLTAGE_MAX,
|
||||
POWER_SUPPLY_PROP_CHARGE_TERM_CURRENT,
|
||||
POWER_SUPPLY_PROP_VOLTAGE_NOW,
|
||||
};
|
||||
|
||||
static char *bq25890_charger_supplied_to[] = {
|
||||
|
@ -750,7 +751,7 @@ static char *bq25890_charger_supplied_to[] = {
|
|||
|
||||
static const struct power_supply_desc bq25890_power_supply_desc = {
|
||||
.name = "bq25890-charger",
|
||||
.type = POWER_SUPPLY_TYPE_USB,
|
||||
.type = POWER_SUPPLY_TYPE_UNKNOWN,
|
||||
.properties = bq25890_power_supply_props,
|
||||
.num_properties = ARRAY_SIZE(bq25890_power_supply_props),
|
||||
.get_property = bq25890_power_supply_get_property,
|
||||
|
|
Loading…
Reference in a new issue