]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
staging: r8188eu: remove include/odm_debug.h
authorPhillip Potter <phil@philpotter.co.uk>
Sat, 31 Jul 2021 00:39:37 +0000 (01:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Jul 2021 07:24:52 +0000 (09:24 +0200)
commitfc577e46eb96b9c2d767c13801591f7a7e27d853
tree76995a4e7fe19202590b5f1407f5580745931159
parentf8a846911d83e94a59016c72c503b22fcb4483c7
staging: r8188eu: remove include/odm_debug.h

Remove include/odm_debug.h in its entirety. To do this, first:

(1) Remove DebugLevel and DebugComponents members from the struct
    odm_dm_struct definition, and any uses of these elsewhere in
    the driver.

(2) Remove the function ODM_InitDebugSetting from hal/odm_debug.c
    whilst leaving the file in place for now as it contains a global
    which is still used and will be removed by further cleanup code.
    Also remove all of its callers. All the function does is set the
    members mentioned above.

(3) Remove the now redundant constants and their usages:
    ODM_CMNINFO_DBG_LEVEL
    ODM_CMNINFO_DBG_COMP
    HW_DEF_ODM_DBG_FLAG
    HW_DEF_FA_CNT_DUMP
    This includes usage within a few hexadecimal ioctl switch cases
    in os_dep/ioctl_linux.c (although only the call itself within
    0x11 as it contains additional code currently).

(4) Finally, remove the file itself and its inclusion within
    include/odm_precomp.h, as none of the remaining content is used
    from anywhere else in the driver.

Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
Link: https://lore.kernel.org/r/20210731003937.68615-15-phil@philpotter.co.uk
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/odm.c
drivers/staging/r8188eu/hal/odm_debug.c
drivers/staging/r8188eu/hal/rtl8188e_dm.c
drivers/staging/r8188eu/hal/usb_halinit.c
drivers/staging/r8188eu/include/hal_intf.h
drivers/staging/r8188eu/include/odm.h
drivers/staging/r8188eu/include/odm_debug.h [deleted file]
drivers/staging/r8188eu/include/odm_precomp.h
drivers/staging/r8188eu/os_dep/ioctl_linux.c