From 8ff4a2b51254efa6fbb9f7776c4976ac1202302b Mon Sep 17 00:00:00 2001 From: Michael Benedict Date: Sun, 1 Sep 2019 02:13:38 +1000 Subject: [PATCH] battery_v2: silence enum conversion warning Signed-off-by: Michael Benedict --- drivers/battery_v2/sec_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/battery_v2/sec_battery.c b/drivers/battery_v2/sec_battery.c index 65bab09c2fa9..7ff91a9321ea 100755 --- a/drivers/battery_v2/sec_battery.c +++ b/drivers/battery_v2/sec_battery.c @@ -6849,7 +6849,7 @@ static int sec_wireless_set_property(struct power_supply *psy, const union power_supply_propval *val) { struct sec_battery_info *battery = power_supply_get_drvdata(psy); - enum power_supply_ext_property ext_psp = psp; + enum power_supply_ext_property ext_psp = (enum power_supply_ext_property) psp; switch (psp) { case POWER_SUPPLY_PROP_ONLINE: -- 2.20.1