aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power/z2_battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/z2_battery.c')
-rw-r--r--drivers/power/z2_battery.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/power/z2_battery.c b/drivers/power/z2_battery.c
index e5ed52d71937..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)
@@ -293,6 +295,7 @@ static const struct i2c_device_id z2_batt_id[] = {
293 { "aer915", 0 }, 295 { "aer915", 0 },
294 { } 296 { }
295}; 297};
298MODULE_DEVICE_TABLE(i2c, z2_batt_id);
296 299
297static struct i2c_driver z2_batt_driver = { 300static struct i2c_driver z2_batt_driver = {
298 .driver = { 301 .driver = {