staging: r8188eu: rename rtl8188eu_set_hal_ops()
authorMichael Straube <straube.linux@gmail.com>
Thu, 7 Oct 2021 10:39:43 +0000 (12:39 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 Oct 2021 12:56:42 +0000 (14:56 +0200)
After the removal of struct hal_ops function rtl8188eu_set_hal_ops()
only allocates memory for adapt->HalData. Rename the function to
rtl8188eu_alloc_haldata() to reflect what it actually does.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20211007103943.8433-6-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/hal_intf.h
drivers/staging/r8188eu/os_dep/usb_intf.c

index 1110277d920e039ae3bcf991da9a8f3faeff3648..94a2b3e32fe7ab71922eca2265e9898ba981af0b 100644 (file)
@@ -2091,7 +2091,7 @@ void rtl8188eu_init_default_value(struct adapter *adapt)
                haldata->odmpriv.RFCalibrateInfo.ThermalValue_HP[i] = 0;
 }
 
-void rtl8188eu_set_hal_ops(struct adapter *adapt)
+void rtl8188eu_alloc_haldata(struct adapter *adapt)
 {
        adapt->HalData = kzalloc(sizeof(struct hal_data_8188e), GFP_KERNEL);
        if (!adapt->HalData)
index 808707fd1e234ac8567dfefc56d63541a6174d3b..408168284b3fb7dd369a14cdfcb5edf81584449e 100644 (file)
@@ -112,7 +112,7 @@ typedef s32 (*c2h_id_filter)(u8 id);
 
 #define is_boot_from_eeprom(adapter) (adapter->eeprompriv.EepromOrEfuse)
 
-void rtl8188eu_set_hal_ops(struct adapter *padapter);
+void rtl8188eu_alloc_haldata(struct adapter *adapt);
 
 void rtl8188eu_interface_configure(struct adapter *adapt);
 void ReadAdapterInfo8188EU(struct adapter *Adapter);
index 5699c44a722b5ad18157eaf48cec194a86dbec47..4ce7f3b10b864494d53940c74c6cbb12dfa8bff4 100644 (file)
@@ -388,8 +388,8 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
        SET_NETDEV_DEV(pnetdev, dvobj_to_dev(dvobj));
        padapter = rtw_netdev_priv(pnetdev);
 
-       /* step 2. hook HalFunc, allocate HalData */
-       rtl8188eu_set_hal_ops(padapter);
+       /* step 2. allocate HalData */
+       rtl8188eu_alloc_haldata(padapter);
 
        padapter->intf_start = &usb_intf_start;
        padapter->intf_stop = &usb_intf_stop;