battery_v2: silence enum conversion warning
authorMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 16:13:38 +0000 (02:13 +1000)
committerMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 16:13:38 +0000 (02:13 +1000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/battery_v2/sec_battery.c

index 65bab09c2fa9664ca424e37b4dabe0f659882e53..7ff91a9321eafb3c136c80003ce817d682914909 100755 (executable)
@@ -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: