Browse Source

rtl8192e: Split into two directories

Now that the rtl8192e driver is split up, it makes sense to keep the
rtllib code in one directory and the rtl8192e specific code in
another. This patch contains the split and the fixup of includes.

Since rtl_core.h already included rtllib.h and dot11d.h, rtl_core.h
was updated to point to the parent directory. All other references to
rtllib.h and dot11d.h in the rtl8192e specific code where deleted
rather than fixed. This leaves just one file that needs to know the
real location of the rtllib includes.

Signed-off-by: Sean MacLennan <seanm@seanm.ca>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Sean MacLennan 13 years ago
parent
commit
3d461c9124
39 changed files with 38 additions and 32 deletions
  1. 5 9
      drivers/staging/rtl8192e/Kconfig
  2. 1 19
      drivers/staging/rtl8192e/Makefile
  3. 9 0
      drivers/staging/rtl8192e/rtl8192e/Kconfig
  4. 21 0
      drivers/staging/rtl8192e/rtl8192e/Makefile
  5. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8190P_def.h
  6. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c
  7. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h
  8. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c
  9. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h
  10. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
  11. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h
  12. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c
  13. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h
  14. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h
  15. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.c
  16. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h
  17. 0 1
      drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
  18. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h
  19. 0 0
      drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h
  20. 0 0
      drivers/staging/rtl8192e/rtl8192e/r819xE_phyreg.h
  21. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_cam.c
  22. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_cam.h
  23. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_core.c
  24. 2 2
      drivers/staging/rtl8192e/rtl8192e/rtl_core.h
  25. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_crypto.h
  26. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_debug.c
  27. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
  28. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_dm.h
  29. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c
  30. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h
  31. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c
  32. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_pci.c
  33. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_pci.h
  34. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_pm.c
  35. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_pm.h
  36. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_ps.c
  37. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_ps.h
  38. 0 1
      drivers/staging/rtl8192e/rtl8192e/rtl_wx.c
  39. 0 0
      drivers/staging/rtl8192e/rtl8192e/rtl_wx.h

+ 5 - 9
drivers/staging/rtl8192e/Kconfig

@@ -8,6 +8,8 @@ config RTLLIB
 
 	  If unsure, say N.
 
+if RTLLIB
+
 config RTLLIB_CRYPTO
 	tristate "Support for rtllib crypto support"
 	depends on RTLLIB
@@ -44,12 +46,6 @@ config RTLLIB_CRYPTO_WEP
 
 	  If you enabled RTLLIB, you want this.
 
-config RTL8192E
-	tristate "RealTek RTL8192E Wireless LAN NIC driver"
-	depends on PCI && WLAN && RTLLIB
-	depends on m
-	select WIRELESS_EXT
-	select WEXT_PRIV
-	select CRYPTO
-	default N
-	---help---
+source "drivers/staging/rtl8192e/rtl8192e/Kconfig"
+
+endif

+ 1 - 19
drivers/staging/rtl8192e/Makefile

@@ -17,24 +17,6 @@ obj-$(CONFIG_RTLLIB_CRYPTO_CCMP) += rtllib_crypt_ccmp.o
 obj-$(CONFIG_RTLLIB_CRYPTO_TKIP) += rtllib_crypt_tkip.o
 obj-$(CONFIG_RTLLIB_CRYPTO_WEP) += rtllib_crypt_wep.o
 
-r8192e_pci-objs :=		\
-	r8192E_dev.o		\
-	r8192E_phy.o		\
-	r8192E_firmware.o	\
-	r8192E_cmdpkt.o		\
-	r8192E_hwimg.o		\
-	r8190P_rtl8256.o	\
-	rtl_cam.o		\
-	rtl_core.o		\
-	rtl_debug.o		\
-	rtl_dm.o		\
-	rtl_eeprom.o		\
-	rtl_ethtool.o		\
-	rtl_pci.o		\
-	rtl_pm.o		\
-	rtl_ps.o		\
-	rtl_wx.o		\
-
-obj-$(CONFIG_RTL8192E) += r8192e_pci.o
+obj-$(CONFIG_RTL8192E) += rtl8192e/
 
 ccflags-y += -D__CHECK_ENDIAN__

+ 9 - 0
drivers/staging/rtl8192e/rtl8192e/Kconfig

@@ -0,0 +1,9 @@
+config RTL8192E
+	tristate "RealTek RTL8192E Wireless LAN NIC driver"
+	depends on PCI && WLAN && RTLLIB
+	depends on m
+	select WIRELESS_EXT
+	select WEXT_PRIV
+	select CRYPTO
+	default N
+	---help---

+ 21 - 0
drivers/staging/rtl8192e/rtl8192e/Makefile

@@ -0,0 +1,21 @@
+r8192e_pci-objs :=		\
+	r8192E_dev.o		\
+	r8192E_phy.o		\
+	r8192E_firmware.o	\
+	r8192E_cmdpkt.o		\
+	r8192E_hwimg.o		\
+	r8190P_rtl8256.o	\
+	rtl_cam.o		\
+	rtl_core.o		\
+	rtl_debug.o		\
+	rtl_dm.o		\
+	rtl_eeprom.o		\
+	rtl_ethtool.o		\
+	rtl_pci.o		\
+	rtl_pm.o		\
+	rtl_ps.o		\
+	rtl_wx.o		\
+
+obj-$(CONFIG_RTL8192E) += r8192e_pci.o
+
+ccflags-y += -D__CHECK_ENDIAN__

+ 0 - 0
drivers/staging/rtl8192e/r8190P_def.h → drivers/staging/rtl8192e/rtl8192e/r8190P_def.h


+ 0 - 0
drivers/staging/rtl8192e/r8190P_rtl8256.c → drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c


+ 0 - 0
drivers/staging/rtl8192e/r8190P_rtl8256.h → drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.h


+ 0 - 0
drivers/staging/rtl8192e/r8192E_cmdpkt.c → drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c


+ 0 - 0
drivers/staging/rtl8192e/r8192E_cmdpkt.h → drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.h


+ 0 - 0
drivers/staging/rtl8192e/r8192E_dev.c → drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c


+ 0 - 0
drivers/staging/rtl8192e/r8192E_dev.h → drivers/staging/rtl8192e/rtl8192e/r8192E_dev.h


+ 0 - 0
drivers/staging/rtl8192e/r8192E_firmware.c → drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c


+ 0 - 0
drivers/staging/rtl8192e/r8192E_firmware.h → drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.h


+ 0 - 0
drivers/staging/rtl8192e/r8192E_hw.h → drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h


+ 0 - 0
drivers/staging/rtl8192e/r8192E_hwimg.c → drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.c


+ 0 - 0
drivers/staging/rtl8192e/r8192E_hwimg.h → drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h


+ 0 - 1
drivers/staging/rtl8192e/r8192E_phy.c → drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c

@@ -23,7 +23,6 @@
 #include "r8190P_rtl8256.h"
 #include "r8192E_phy.h"
 #include "rtl_dm.h"
-#include "dot11d.h"
 
 #include "r8192E_hwimg.h"
 

+ 0 - 0
drivers/staging/rtl8192e/r8192E_phy.h → drivers/staging/rtl8192e/rtl8192e/r8192E_phy.h


+ 0 - 0
drivers/staging/rtl8192e/r8192E_phyreg.h → drivers/staging/rtl8192e/rtl8192e/r8192E_phyreg.h


+ 0 - 0
drivers/staging/rtl8192e/r819xE_phyreg.h → drivers/staging/rtl8192e/rtl8192e/r819xE_phyreg.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_cam.c → drivers/staging/rtl8192e/rtl8192e/rtl_cam.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_cam.h → drivers/staging/rtl8192e/rtl8192e/rtl_cam.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_core.c → drivers/staging/rtl8192e/rtl8192e/rtl_core.c


+ 2 - 2
drivers/staging/rtl8192e/rtl_core.h → drivers/staging/rtl8192e/rtl8192e/rtl_core.h

@@ -50,9 +50,9 @@
 /* Need this defined before including local include files */
 #define DRV_NAME "rtl819xE"
 
-#include "rtllib.h"
+#include "../rtllib.h"
 
-#include "dot11d.h"
+#include "../dot11d.h"
 
 #include "r8192E_firmware.h"
 #include "r8192E_hw.h"

+ 0 - 0
drivers/staging/rtl8192e/rtl_crypto.h → drivers/staging/rtl8192e/rtl8192e/rtl_crypto.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_debug.c → drivers/staging/rtl8192e/rtl8192e/rtl_debug.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_dm.c → drivers/staging/rtl8192e/rtl8192e/rtl_dm.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_dm.h → drivers/staging/rtl8192e/rtl8192e/rtl_dm.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_eeprom.c → drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_eeprom.h → drivers/staging/rtl8192e/rtl8192e/rtl_eeprom.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_ethtool.c → drivers/staging/rtl8192e/rtl8192e/rtl_ethtool.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_pci.c → drivers/staging/rtl8192e/rtl8192e/rtl_pci.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_pci.h → drivers/staging/rtl8192e/rtl8192e/rtl_pci.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_pm.c → drivers/staging/rtl8192e/rtl8192e/rtl_pm.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_pm.h → drivers/staging/rtl8192e/rtl8192e/rtl_pm.h


+ 0 - 0
drivers/staging/rtl8192e/rtl_ps.c → drivers/staging/rtl8192e/rtl8192e/rtl_ps.c


+ 0 - 0
drivers/staging/rtl8192e/rtl_ps.h → drivers/staging/rtl8192e/rtl8192e/rtl_ps.h


+ 0 - 1
drivers/staging/rtl8192e/rtl_wx.c → drivers/staging/rtl8192e/rtl8192e/rtl_wx.c

@@ -19,7 +19,6 @@
 
 #include <linux/string.h>
 #include "rtl_core.h"
-#include "dot11d.h"
 
 #define RATE_COUNT 12
 static u32 rtl8192_rates[] = {

+ 0 - 0
drivers/staging/rtl8192e/rtl_wx.h → drivers/staging/rtl8192e/rtl8192e/rtl_wx.h