From e531c03040b9ad3a86d3b751fb47b3362d85f373 Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Thu, 19 Sep 2013 18:35:39 +0100 Subject: Revert "max77693: Standardize the output of the "online" property" This reverts commit 1a05356029493b29f866cf04f7550243ef3ae687, the enumerator breakage introduced by change Iafbd9fb45253b02d539ac0ba114f57b3bf9eeed4 can be reverted cleanly without further impact and it's a cleaner fix Change-Id: I351c320f98691241fbe321a0b1ac54152802deb4 --- drivers/battery/max77693_charger.c | 4 ---- drivers/power/power_supply_sysfs.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'drivers') diff --git a/drivers/battery/max77693_charger.c b/drivers/battery/max77693_charger.c index 98fc901..35289a6 100644 --- a/drivers/battery/max77693_charger.c +++ b/drivers/battery/max77693_charger.c @@ -1376,10 +1376,6 @@ static int max77693_charger_get_property(struct power_supply *psy, val->intval = max77693_get_online_type(chg_data); #else val->intval = max77693_get_cable_type(chg_data); - if (val->intval == POWER_SUPPLY_TYPE_BATTERY) { - /* Userspace expects 0 for no-supply */ - val->intval = 0; - } #endif break; case POWER_SUPPLY_PROP_CURRENT_MAX: diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c index a647e74..a5235ab 100644 --- a/drivers/power/power_supply_sysfs.c +++ b/drivers/power/power_supply_sysfs.c @@ -42,7 +42,7 @@ static ssize_t power_supply_show_property(struct device *dev, struct device_attribute *attr, char *buf) { static char *type_text[] = { - "Unknown", "Battery", "UPS", "Mains", "USB", + "Battery", "UPS", "Mains", "USB", "USB_DCP", "USB_CDP", "USB_ACA", "DOCK", "MISC", "WIRELESS", "OTG" }; -- cgit v1.1