diff options
author | Ping-Ke Shih <pkshih@realtek.com> | 2024-04-29 04:47:11 +0200 |
---|---|---|
committer | Ping-Ke Shih <pkshih@realtek.com> | 2024-05-02 05:08:33 +0200 |
commit | 949f6f3aeb8721ad092d704ef10f5c5e79472d64 (patch) | |
tree | 3a63eaf874375100580f1f28be4256cbc04c26f9 /drivers/net/wireless/realtek/rtl8xxxu/8188f.c | |
parent | wifi: rtl8xxxu: remove rtl8xxxu_ prefix from filenames (diff) | |
download | linux-949f6f3aeb8721ad092d704ef10f5c5e79472d64.tar.xz linux-949f6f3aeb8721ad092d704ef10f5c5e79472d64.zip |
wifi: rtl8xxxu: cleanup includes
Remove unnecessary includes from driver. The first step is to add
necessary includes to driver's header files to make them can be included
individually. Then, driver's C files include driver's header files first,
and check if still missed header files of kernel.
The results show that most C files only include driver's header files.
Only core.c needs to include additional linux/firmware.h.
Also sort includes in alphabetic order.
Compile tested only.
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://msgid.link/20240429024711.30992-1-pkshih@realtek.com
Diffstat (limited to 'drivers/net/wireless/realtek/rtl8xxxu/8188f.c')
-rw-r--r-- | drivers/net/wireless/realtek/rtl8xxxu/8188f.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/net/wireless/realtek/rtl8xxxu/8188f.c b/drivers/net/wireless/realtek/rtl8xxxu/8188f.c index 296370414134..bd5a0603b4a2 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/8188f.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/8188f.c @@ -11,20 +11,8 @@ * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. */ -#include <linux/kernel.h> -#include <linux/errno.h> -#include <linux/slab.h> -#include <linux/module.h> -#include <linux/spinlock.h> -#include <linux/list.h> -#include <linux/usb.h> -#include <linux/netdevice.h> -#include <linux/etherdevice.h> -#include <linux/firmware.h> -#include <linux/moduleparam.h> -#include <net/mac80211.h> -#include "rtl8xxxu.h" #include "regs.h" +#include "rtl8xxxu.h" static const struct rtl8xxxu_reg8val rtl8188f_mac_init_table[] = { {0x024, 0xDF}, {0x025, 0x07}, {0x02B, 0x1C}, {0x283, 0x20}, |