diff options
| author | Vasily Khoruzhick <[email protected]> | 2011-03-11 13:09:32 +0000 |
|---|---|---|
| committer | Anton Vorontsov <[email protected]> | 2011-03-16 13:39:54 +0000 |
| commit | a223246f7280422f77c15b71455fe3362d3604b4 (patch) | |
| tree | 1fb1a09a0558d69db7704abc958e2ffa313b625b | |
| parent | s3c_adc_battery: Fix method names when PM not set (diff) | |
| download | kernel-a223246f7280422f77c15b71455fe3362d3604b4.tar.gz kernel-a223246f7280422f77c15b71455fe3362d3604b4.zip | |
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]>
| -rw-r--r-- | drivers/power/z2_battery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/z2_battery.c b/drivers/power/z2_battery.c index 81304c0bb9d3..2a9ab89f83b8 100644 --- a/drivers/power/z2_battery.c +++ b/drivers/power/z2_battery.c @@ -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) |
