diff options
-rw-r--r-- | drivers/power/max17042_fuelgauge_u1.c | 2 | ||||
-rw-r--r-- | include/linux/power_supply.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/max17042_fuelgauge_u1.c b/drivers/power/max17042_fuelgauge_u1.c index 39b931c..378dafe 100644 --- a/drivers/power/max17042_fuelgauge_u1.c +++ b/drivers/power/max17042_fuelgauge_u1.c @@ -884,7 +884,7 @@ static int __devinit max17042_probe(struct i2c_client *client, i2c_set_clientdata(client, chip); chip->battery.name = "fuelgauge"; - chip->battery.type = POWER_SUPPLY_TYPE_BATTERY; + chip->battery.type = POWER_SUPPLY_TYPE_UNKNOWN; chip->battery.get_property = max17042_get_property; chip->battery.set_property = max17042_set_property; chip->battery.properties = max17042_battery_props; diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 8289fca..35b7ed6 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -146,6 +146,7 @@ enum power_supply_type { POWER_SUPPLY_TYPE_WIRELESS, POWER_SUPPLY_TYPE_UARTOFF, POWER_SUPPLY_TYPE_OTG, + POWER_SUPPLY_TYPE_UNKNOWN, }; enum { |