[PATCH v1 7/7] power: bq24190_charger: Set bq24190-battery device .type=unknown

Liam Breck
2017-03-21T22:17:44Z

From: Liam Breck <kernel@networkimprov.net>

Not for upstream. Temporary workaround to prevent bq24190-battery device
from interfering with a fuel gauge that has .type=power_supply_type_battery

I'll move properties from -battery device to -charger in a subsequent version.

Cc: Hans de Goede <hdegoede@redhat.com>
---
drivers/power/supply/bq24190_charger.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/bq24190_charger.c
index a52816b..12f3780 100644
--- a/drivers/power/supply/bq24190_charger.c
+++ b/drivers/power/supply/bq24190_charger.c
@@ -1228,7 +1228,7 @@ static enum power_supply_property bq24190_battery_properties[] = {

static const struct power_supply_desc bq24190_battery_desc = {
.name = "bq24190-battery",
- .type = POWER_SUPPLY_TYPE_BATTERY,
+ .type = POWER_SUPPLY_TYPE_UNKNOWN,
.properties = bq24190_battery_properties,
.num_properties = ARRAY_SIZE(bq24190_battery_properties),
.get_property = bq24190_battery_get_property,
--
2.9.3