mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
z2_battery: Fix count of properties
PROP_STATUS property was not counted, as result VOLTAGE_MIN property is missing in sysfs. Fix it. Signed-off-by: Vasily Khoruzhick <[email protected]> Acked-by: Marek Vasut <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
f8d878ddbb
commit
a223246f72
1 changed files with 2 additions and 0 deletions
|
|
@ -134,6 +134,8 @@ static int z2_batt_ps_init(struct z2_charger *charger, int props)
|
|||
enum power_supply_property *prop;
|
||||
struct z2_battery_info *info = charger->info;
|
||||
|
||||
if (info->charge_gpio >= 0)
|
||||
props++; /* POWER_SUPPLY_PROP_STATUS */
|
||||
if (info->batt_tech >= 0)
|
||||
props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */
|
||||
if (info->batt_I2C_reg >= 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue