mfc: silence enum conversion warning
authorMichael Benedict <michaelbt@live.com>
Sat, 31 Aug 2019 16:34:09 +0000 (02:34 +1000)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:46 +0000 (21:13 +0000)
Signed-off-by: Michael Benedict <michaelbt@live.com>
drivers/battery_v2/mfc_charger.c

index a69a52ec90e953fe45870ab7428e148c696b8fc8..827dd8e6c50c6acf4a81dff4d47b4861ed637b0c 100755 (executable)
@@ -2021,7 +2021,7 @@ static int mfc_chg_set_property(struct power_supply *psy,
                const union power_supply_propval *val)
 {
        struct mfc_charger_data *charger = 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;
        int vout, vrect, iout, freq, i = 0;
        u8 tmp = 0;
        /* int ret; */