aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorKim, Milo <Milo.Kim@ti.com>2011-12-01 02:08:33 -0500
committerAnton Vorontsov <cbouatmailru@gmail.com>2012-01-04 00:05:51 -0500
commit9b8872273af6983b246252a6508fa7cf34c69d6e (patch)
treeb9b996c704fe98b46f3e58434f3f70f6171bbb67 /drivers/power
parentce09affc59bca2a1ac1f77b75915fd914fab1f70 (diff)
power_supply: Add "unknown" in power supply type
For the default value of power supply type, "unknown" is added. With default prop value, supply type property can be displayed as default - "Unknown". Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/power_supply_sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
index 58cc4906d216..939e2e432553 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,
42 struct device_attribute *attr, 42 struct device_attribute *attr,
43 char *buf) { 43 char *buf) {
44 static char *type_text[] = { 44 static char *type_text[] = {
45 "Battery", "UPS", "Mains", "USB", 45 "Unknown", "Battery", "UPS", "Mains", "USB",
46 "USB_DCP", "USB_CDP", "USB_ACA" 46 "USB_DCP", "USB_CDP", "USB_ACA"
47 }; 47 };
48 static char *status_text[] = { 48 static char *status_text[] = {