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