Commit 9b887227 authored by Kim, Milo's avatar Kim, Milo Committed by Anton Vorontsov

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: default avatarMilo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent ce09affc
...@@ -42,7 +42,7 @@ static ssize_t power_supply_show_property(struct device *dev, ...@@ -42,7 +42,7 @@ static ssize_t power_supply_show_property(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
char *buf) { char *buf) {
static char *type_text[] = { static char *type_text[] = {
"Battery", "UPS", "Mains", "USB", "Unknown", "Battery", "UPS", "Mains", "USB",
"USB_DCP", "USB_CDP", "USB_ACA" "USB_DCP", "USB_CDP", "USB_ACA"
}; };
static char *status_text[] = { static char *status_text[] = {
......
...@@ -123,7 +123,8 @@ enum power_supply_property { ...@@ -123,7 +123,8 @@ enum power_supply_property {
}; };
enum power_supply_type { enum power_supply_type {
POWER_SUPPLY_TYPE_BATTERY = 0, POWER_SUPPLY_TYPE_UNKNOWN = 0,
POWER_SUPPLY_TYPE_BATTERY,
POWER_SUPPLY_TYPE_UPS, POWER_SUPPLY_TYPE_UPS,
POWER_SUPPLY_TYPE_MAINS, POWER_SUPPLY_TYPE_MAINS,
POWER_SUPPLY_TYPE_USB, /* Standard Downstream Port */ POWER_SUPPLY_TYPE_USB, /* Standard Downstream Port */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment