aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorVasily Khoruzhick <anarsoul@gmail.com>2011-03-11 08:09:32 -0500
committerAnton Vorontsov <cbouatmailru@gmail.com>2011-03-16 09:39:54 -0400
commita223246f7280422f77c15b71455fe3362d3604b4 (patch)
tree1fb1a09a0558d69db7704abc958e2ffa313b625b /drivers/power
parentf8d878ddbb3c08bc2f876975df674484208536ac (diff)
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>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/z2_battery.c2
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)
134 enum power_supply_property *prop; 134 enum power_supply_property *prop;
135 struct z2_battery_info *info = charger->info; 135 struct z2_battery_info *info = charger->info;
136 136
137 if (info->charge_gpio >= 0)
138 props++; /* POWER_SUPPLY_PROP_STATUS */
137 if (info->batt_tech >= 0) 139 if (info->batt_tech >= 0)
138 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */ 140 props++; /* POWER_SUPPLY_PROP_TECHNOLOGY */
139 if (info->batt_I2C_reg >= 0) 141 if (info->batt_I2C_reg >= 0)