staging: rtl8723au: Use enum for counter and avoid ugly typecast
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 4 Dec 2014 21:15:46 +0000 (16:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2015 21:45:26 +0000 (13:45 -0800)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723a_phycfg.c

index 88e91cd8ebb9cd16fe2b6ee63b0d299d869d82b3..e0fff53487b22ed5c0c7d0efa94aa1101708eed2 100644 (file)
@@ -1074,7 +1074,7 @@ PHY_SetBWMode23a8723A(struct rtw_adapter *Adapter,
 
 static void _PHY_SwChnl8723A(struct rtw_adapter *Adapter, u8 channel)
 {
-       u8 eRFPath;
+       enum RF_RADIO_PATH eRFPath;
        u32 param1, param2;
        struct hal_data_8723a *pHalData = GET_HAL_DATA(Adapter);
 
@@ -1088,7 +1088,7 @@ static void _PHY_SwChnl8723A(struct rtw_adapter *Adapter, u8 channel)
        for (eRFPath = 0; eRFPath < pHalData->NumTotalRFPath; eRFPath++) {
                pHalData->RfRegChnlVal[eRFPath] =
                        (pHalData->RfRegChnlVal[eRFPath] & 0xfffffc00) | param2;
-               PHY_SetRFReg(Adapter, (enum RF_RADIO_PATH)eRFPath, param1,
+               PHY_SetRFReg(Adapter, eRFPath, param1,
                             bRFRegOffsetMask, pHalData->RfRegChnlVal[eRFPath]);
        }