Merge "qpnp-smb2: use real_type to convey WIPOWER type" into msm-4.4
This commit is contained in:
commit
c72d0c4cec
1 changed files with 5 additions and 1 deletions
|
@ -783,6 +783,7 @@ static enum power_supply_property smb2_dc_props[] = {
|
|||
POWER_SUPPLY_PROP_PRESENT,
|
||||
POWER_SUPPLY_PROP_ONLINE,
|
||||
POWER_SUPPLY_PROP_CURRENT_MAX,
|
||||
POWER_SUPPLY_PROP_REAL_TYPE,
|
||||
};
|
||||
|
||||
static int smb2_dc_get_prop(struct power_supply *psy,
|
||||
|
@ -803,6 +804,9 @@ static int smb2_dc_get_prop(struct power_supply *psy,
|
|||
case POWER_SUPPLY_PROP_CURRENT_MAX:
|
||||
rc = smblib_get_prop_dc_current_max(chg, val);
|
||||
break;
|
||||
case POWER_SUPPLY_PROP_REAL_TYPE:
|
||||
val->intval = POWER_SUPPLY_TYPE_WIPOWER;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -851,7 +855,7 @@ static int smb2_dc_prop_is_writeable(struct power_supply *psy,
|
|||
|
||||
static const struct power_supply_desc dc_psy_desc = {
|
||||
.name = "dc",
|
||||
.type = POWER_SUPPLY_TYPE_WIPOWER,
|
||||
.type = POWER_SUPPLY_TYPE_WIRELESS,
|
||||
.properties = smb2_dc_props,
|
||||
.num_properties = ARRAY_SIZE(smb2_dc_props),
|
||||
.get_property = smb2_dc_get_prop,
|
||||
|
|
Loading…
Add table
Reference in a new issue