From: Andreas Dannenberg Date: Tue, 4 Aug 2015 16:36:17 +0000 (-0500) Subject: power: bq24190_charger: Fix charge type sysfs property X-Git-Tag: firefly_0821_release~176^2~1214^2~2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c9f85a90d41476aca2d3b60f98ab87d7ae1b8612;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Dan Murphy Acked-by: Andrew F. Davis Signed-off-by: Sebastian Reichel --- 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, } static enum power_supply_property bq24190_charger_properties[] = { - POWER_SUPPLY_PROP_TYPE, + POWER_SUPPLY_PROP_CHARGE_TYPE, POWER_SUPPLY_PROP_HEALTH, POWER_SUPPLY_PROP_ONLINE, POWER_SUPPLY_PROP_CONSTANT_CHARGE_CURRENT,