aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Dannenberg <dannenberg@ti.com>2015-08-04 12:36:17 -0400
committerSebastian Reichel <sre@kernel.org>2015-08-05 00:01:15 -0400
commitc9f85a90d41476aca2d3b60f98ab87d7ae1b8612 (patch)
tree0be051118319e13275ed06dfbff2974e6df388c7
parent1e8b82c1ff3bc52c5e4265d66fe5c6da9a66e2e6 (diff)
power: bq24190_charger: Fix charge type sysfs property
Access to the BQ24190's configurable charge type property (none, trickle, fast) is being masked by an incorrect power_supply_property entry. After applying this patch a new 'charge_type' property will appear in the bq24190-charger sysfs folder backed up by getters/setters already present in the driver. Signed-off-by: Andreas Dannenberg <dannenberg@ti.com> Acked-by: Dan Murphy <dmurphy@ti.com> Acked-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Sebastian Reichel <sre@kernel.org>
-rw-r--r--drivers/power/bq24190_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/bq24190_charger.c b/drivers/power/bq24190_charger.c
index bb6d85bd6e56..469a452cbe10 100644
--- a/drivers/power/bq24190_charger.c
+++ b/drivers/power/bq24190_charger.c
@@ -902,7 +902,7 @@ static int bq24190_charger_property_is_writeable(struct power_supply *psy,
902} 902}
903 903
904static enum power_supply_property bq24190_charger_properties[] = { 904static enum power_supply_property bq24190_charger_properties[] = {
905 POWER_SUPPLY_PROP_TYPE, 905 POWER_SUPPLY_PROP_CHARGE_TYPE,
906 POWER_SUPPLY_PROP_HEALTH, 906 POWER_SUPPLY_PROP_HEALTH,
907 POWER_SUPPLY_PROP_ONLINE, 907 POWER_SUPPLY_PROP_ONLINE,
908 POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT, 908 POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,