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 <anarsoul@gmail.com>
Acked-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

authored by Vasily Khoruzhick and committed by Anton Vorontsov a223246f f8d878dd

+2
+2
drivers/power/z2_battery.c
··· 134 enum power_supply_property *prop; 135 struct z2_battery_info *info = charger->info; 136 137 if (info->batt_tech >= 0) 138 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ 139 if (info->batt_I2C_reg >= 0)
··· 134 enum power_supply_property *prop; 135 struct z2_battery_info *info = charger->info; 136 137 + if (info->charge_gpio >= 0) 138 + props++; /* POWER_SUPPLY_PROP_STATUS */ 139 if (info->batt_tech >= 0) 140 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ 141 if (info->batt_I2C_reg >= 0)