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 <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
Kim, Milo 2011-11-30 23:08:33 -08:00 • committed by Anton Vorontsov
commit 9b8872273a
2 changed files with 3 additions and 2 deletions

View file

@ -42,7 +42,7 @@ static ssize_t power_supply_show_property(struct device *dev,
struct device_attribute *attr,
char *buf) {
static char *type_text[] = {
"Battery", "UPS", "Mains", "USB",
"Unknown", "Battery", "UPS", "Mains", "USB",
"USB_DCP", "USB_CDP", "USB_ACA"
};
static char *status_text[] = {