staging: r8188eu: remove include/rtw_debug.h
authorPhillip Potter <phil@philpotter.co.uk>
Thu, 19 May 2022 22:10:47 +0000 (23:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 23:16:35 +0000 (01:16 +0200)
Remove include/rtw_debug.h, as all it now has are:

(1) A load of unused preprocessor definitions that expand to BIT(x)
    variants.
(2) A preprocessor definition that expands to the name of the driver
    and is only used in one place inside a pr_info_once call in
    core/rtw_fw.c.

It is now surplus to requirements after fixing up the few places that
include the file.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20220519221047.6940-1-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_fw.c
drivers/staging/r8188eu/include/drv_types.h
drivers/staging/r8188eu/include/rtw_debug.h [deleted file]
drivers/staging/r8188eu/os_dep/ioctl_linux.c

index bf077876ed3d02f7d5da8bbf836aa82331af0376..0451e517764482de5ac197f29bd9491bbbeed76f 100644 (file)
@@ -259,8 +259,8 @@ int rtl8188e_firmware_download(struct adapter *padapter)
        fwhdr = (struct rt_firmware_hdr *)dvobj->firmware.data;
 
        if (IS_FW_HEADER_EXIST(fwhdr)) {
-               pr_info_once("%sFirmware Version %d, SubVersion %d, Signature 0x%x\n",
-                            DRIVER_PREFIX, le16_to_cpu(fwhdr->version), fwhdr->subversion,
+               pr_info_once("R8188EU: Firmware Version %d, SubVersion %d, Signature 0x%x\n",
+                            le16_to_cpu(fwhdr->version), fwhdr->subversion,
                             le16_to_cpu(fwhdr->signature));
 
                fw_data = fw_data + sizeof(struct rt_firmware_hdr);
index ffab2ee0848a7ad7da55eee5d3b775199b18f0c7..bba88a0ede61cd08f7cba7906ca2a879a6babde8 100644 (file)
@@ -26,7 +26,6 @@
 #include "rtw_eeprom.h"
 #include "sta_info.h"
 #include "rtw_mlme.h"
-#include "rtw_debug.h"
 #include "rtw_rf.h"
 #include "rtw_event.h"
 #include "rtw_led.h"
diff --git a/drivers/staging/r8188eu/include/rtw_debug.h b/drivers/staging/r8188eu/include/rtw_debug.h
deleted file mode 100644 (file)
index 84ec068..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
-/* Copyright(c) 2007 - 2011 Realtek Corporation. */
-
-#ifndef __RTW_DEBUG_H__
-#define __RTW_DEBUG_H__
-
-#include "osdep_service.h"
-#include "drv_types.h"
-
-#define _module_rtl871x_xmit_c_                BIT(0)
-#define _module_xmit_osdep_c_          BIT(1)
-#define _module_rtl871x_recv_c_                BIT(2)
-#define _module_recv_osdep_c_          BIT(3)
-#define _module_rtl871x_mlme_c_                BIT(4)
-#define _module_mlme_osdep_c_          BIT(5)
-#define _module_rtl871x_sta_mgt_c_     BIT(6)
-#define _module_rtl871x_cmd_c_         BIT(7)
-#define _module_cmd_osdep_c_           BIT(8)
-#define _module_rtl871x_io_c_          BIT(9)
-#define _module_io_osdep_c_            BIT(10)
-#define _module_os_intfs_c_            BIT(11)
-#define _module_rtl871x_security_c_    BIT(12)
-#define _module_rtl871x_eeprom_c_      BIT(13)
-#define _module_hal_init_c_            BIT(14)
-#define _module_hci_hal_init_c_                BIT(15)
-#define _module_rtl871x_ioctl_c_       BIT(16)
-#define _module_rtl871x_ioctl_set_c_   BIT(17)
-#define _module_rtl871x_ioctl_query_c_ BIT(18)
-#define _module_rtl871x_pwrctrl_c_     BIT(19)
-#define _module_hci_intfs_c_           BIT(20)
-#define _module_hci_ops_c_             BIT(21)
-#define _module_osdep_service_c_       BIT(22)
-#define _module_mp_                    BIT(23)
-#define _module_hci_ops_os_c_          BIT(24)
-#define _module_rtl871x_ioctl_os_c     BIT(25)
-#define _module_rtl8712_cmd_c_         BIT(26)
-#define        _module_rtl8192c_xmit_c_        BIT(27)
-#define _module_hal_xmit_c_            BIT(28)
-#define _module_efuse_                 BIT(29)
-#define _module_rtl8712_recv_c_                BIT(30)
-#define _module_rtl8712_led_c_         BIT(31)
-
-#define DRIVER_PREFIX  "R8188EU: "
-
-#endif /* __RTW_DEBUG_H__ */
index 9c1f576e067ae2216092a06b80917a77be6d55c7..1b09462ca908d88089c0a2abd81e16c3b77c941c 100644 (file)
@@ -4,7 +4,6 @@
 #include "../include/osdep_service.h"
 #include "../include/drv_types.h"
 #include "../include/wlan_bssdef.h"
-#include "../include/rtw_debug.h"
 #include "../include/wifi.h"
 #include "../include/rtw_mlme.h"
 #include "../include/rtw_mlme_ext.h"