aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/bq27x00_battery.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/power/bq27x00_battery.c b/drivers/power/bq27x00_battery.c
index eff0273d4030..bb043f93cead 100644
--- a/drivers/power/bq27x00_battery.c
+++ b/drivers/power/bq27x00_battery.c
@@ -78,6 +78,7 @@ static enum power_supply_property bq27x00_battery_props[] = {
78 POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW, 78 POWER_SUPPLY_PROP_TIME_TO_EMPTY_NOW,
79 POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG, 79 POWER_SUPPLY_PROP_TIME_TO_EMPTY_AVG,
80 POWER_SUPPLY_PROP_TIME_TO_FULL_NOW, 80 POWER_SUPPLY_PROP_TIME_TO_FULL_NOW,
81 POWER_SUPPLY_PROP_TECHNOLOGY,
81}; 82};
82 83
83/* 84/*
@@ -277,6 +278,9 @@ static int bq27x00_battery_get_property(struct power_supply *psy,
277 case POWER_SUPPLY_PROP_TIME_TO_FULL_NOW: 278 case POWER_SUPPLY_PROP_TIME_TO_FULL_NOW:
278 ret = bq27x00_battery_time(di, BQ27x00_REG_TTF, val); 279 ret = bq27x00_battery_time(di, BQ27x00_REG_TTF, val);
279 break; 280 break;
281 case POWER_SUPPLY_PROP_TECHNOLOGY:
282 val->intval = POWER_SUPPLY_TECHNOLOGY_LION;
283 break;
280 default: 284 default:
281 return -EINVAL; 285 return -EINVAL;
282 } 286 }