Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtl818x: move rtl8180 and rtl8187 to separate subdirectories

These drivers share one header file, but nothing else. Worse, both
drivers use the rtl8225 part with different register settings. The
results has been some ugly naming -- let's simplify that.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Acked-by: Herton Ronaldo Krzesinski <herton@mandriva.com.br>

+29 -24
+2 -2
MAINTAINERS
··· 5032 5032 W: http://linuxwireless.org/ 5033 5033 T: git git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git 5034 5034 S: Maintained 5035 - F: drivers/net/wireless/rtl818x/rtl8180* 5035 + F: drivers/net/wireless/rtl818x/rtl8180/ 5036 5036 5037 5037 RTL8187 WIRELESS DRIVER 5038 5038 M: Herton Ronaldo Krzesinski <herton@mandriva.com.br> ··· 5042 5042 W: http://linuxwireless.org/ 5043 5043 T: git git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-testing.git 5044 5044 S: Maintained 5045 - F: drivers/net/wireless/rtl818x/rtl8187* 5045 + F: drivers/net/wireless/rtl818x/rtl8187/ 5046 5046 5047 5047 RTL8192CE WIRELESS DRIVER 5048 5048 M: Larry Finger <Larry.Finger@lwfinger.net>
+2 -7
drivers/net/wireless/rtl818x/Makefile
··· 1 - rtl8180-objs := rtl8180_dev.o rtl8180_rtl8225.o rtl8180_sa2400.o rtl8180_max2820.o rtl8180_grf5101.o 2 - rtl8187-objs := rtl8187_dev.o rtl8187_rtl8225.o rtl8187_leds.o rtl8187_rfkill.o 3 - 4 - obj-$(CONFIG_RTL8180) += rtl8180.o 5 - obj-$(CONFIG_RTL8187) += rtl8187.o 6 - 7 - 1 + obj-$(CONFIG_RTL8180) += rtl8180/ 2 + obj-$(CONFIG_RTL8187) += rtl8187/
drivers/net/wireless/rtl818x/rtl8180.h drivers/net/wireless/rtl818x/rtl8180/rtl8180.h
+5
drivers/net/wireless/rtl818x/rtl8180/Makefile
··· 1 + rtl8180-objs := dev.o rtl8225.o sa2400.o max2820.o grf5101.o 2 + 3 + obj-$(CONFIG_RTL8180) += rtl8180.o 4 + 5 + ccflags-y += -Idrivers/net/wireless/rtl818x
+4 -4
drivers/net/wireless/rtl818x/rtl8180_dev.c drivers/net/wireless/rtl818x/rtl8180/dev.c
··· 24 24 #include <net/mac80211.h> 25 25 26 26 #include "rtl8180.h" 27 - #include "rtl8180_rtl8225.h" 28 - #include "rtl8180_sa2400.h" 29 - #include "rtl8180_max2820.h" 30 - #include "rtl8180_grf5101.h" 27 + #include "rtl8225.h" 28 + #include "sa2400.h" 29 + #include "max2820.h" 30 + #include "grf5101.h" 31 31 32 32 MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>"); 33 33 MODULE_AUTHOR("Andrea Merello <andreamrl@tiscali.it>");
+1 -1
drivers/net/wireless/rtl818x/rtl8180_grf5101.c drivers/net/wireless/rtl818x/rtl8180/grf5101.c
··· 25 25 #include <net/mac80211.h> 26 26 27 27 #include "rtl8180.h" 28 - #include "rtl8180_grf5101.h" 28 + #include "grf5101.h" 29 29 30 30 static const int grf5101_encode[] = { 31 31 0x0, 0x8, 0x4, 0xC,
drivers/net/wireless/rtl818x/rtl8180_grf5101.h drivers/net/wireless/rtl818x/rtl8180/grf5101.h
+1 -1
drivers/net/wireless/rtl818x/rtl8180_max2820.c drivers/net/wireless/rtl818x/rtl8180/max2820.c
··· 24 24 #include <net/mac80211.h> 25 25 26 26 #include "rtl8180.h" 27 - #include "rtl8180_max2820.h" 27 + #include "max2820.h" 28 28 29 29 static const u32 max2820_chan[] = { 30 30 12, /* CH 1 */
drivers/net/wireless/rtl818x/rtl8180_max2820.h drivers/net/wireless/rtl818x/rtl8180/max2820.h
+1 -1
drivers/net/wireless/rtl818x/rtl8180_rtl8225.c drivers/net/wireless/rtl818x/rtl8180/rtl8225.c
··· 21 21 #include <net/mac80211.h> 22 22 23 23 #include "rtl8180.h" 24 - #include "rtl8180_rtl8225.h" 24 + #include "rtl8225.h" 25 25 26 26 static void rtl8225_write(struct ieee80211_hw *dev, u8 addr, u16 data) 27 27 {
drivers/net/wireless/rtl818x/rtl8180_rtl8225.h drivers/net/wireless/rtl818x/rtl8180/rtl8225.h
+1 -1
drivers/net/wireless/rtl818x/rtl8180_sa2400.c drivers/net/wireless/rtl818x/rtl8180/sa2400.c
··· 25 25 #include <net/mac80211.h> 26 26 27 27 #include "rtl8180.h" 28 - #include "rtl8180_sa2400.h" 28 + #include "sa2400.h" 29 29 30 30 static const u32 sa2400_chan[] = { 31 31 0x00096c, /* ch1 */
drivers/net/wireless/rtl818x/rtl8180_sa2400.h drivers/net/wireless/rtl818x/rtl8180/sa2400.h
+1 -1
drivers/net/wireless/rtl818x/rtl8187.h drivers/net/wireless/rtl818x/rtl8187/rtl8187.h
··· 16 16 #define RTL8187_H 17 17 18 18 #include "rtl818x.h" 19 - #include "rtl8187_leds.h" 19 + #include "leds.h" 20 20 21 21 #define RTL8187_EEPROM_TXPWR_BASE 0x05 22 22 #define RTL8187_EEPROM_MAC_ADDR 0x07
+5
drivers/net/wireless/rtl818x/rtl8187/Makefile
··· 1 + rtl8187-objs := dev.o rtl8225.o leds.o rfkill.o 2 + 3 + obj-$(CONFIG_RTL8187) += rtl8187.o 4 + 5 + ccflags-y += -Idrivers/net/wireless/rtl818x
+3 -3
drivers/net/wireless/rtl818x/rtl8187_dev.c drivers/net/wireless/rtl818x/rtl8187/dev.c
··· 29 29 #include <net/mac80211.h> 30 30 31 31 #include "rtl8187.h" 32 - #include "rtl8187_rtl8225.h" 32 + #include "rtl8225.h" 33 33 #ifdef CONFIG_RTL8187_LEDS 34 - #include "rtl8187_leds.h" 34 + #include "leds.h" 35 35 #endif 36 - #include "rtl8187_rfkill.h" 36 + #include "rfkill.h" 37 37 38 38 MODULE_AUTHOR("Michael Wu <flamingice@sourmilk.net>"); 39 39 MODULE_AUTHOR("Andrea Merello <andreamrl@tiscali.it>");
+1 -1
drivers/net/wireless/rtl818x/rtl8187_leds.c drivers/net/wireless/rtl818x/rtl8187/leds.c
··· 20 20 #include <linux/eeprom_93cx6.h> 21 21 22 22 #include "rtl8187.h" 23 - #include "rtl8187_leds.h" 23 + #include "leds.h" 24 24 25 25 static void led_turn_on(struct work_struct *work) 26 26 {
drivers/net/wireless/rtl818x/rtl8187_leds.h drivers/net/wireless/rtl818x/rtl8187/leds.h
+1 -1
drivers/net/wireless/rtl818x/rtl8187_rfkill.c drivers/net/wireless/rtl818x/rtl8187/rfkill.c
··· 18 18 #include <net/mac80211.h> 19 19 20 20 #include "rtl8187.h" 21 - #include "rtl8187_rfkill.h" 21 + #include "rfkill.h" 22 22 23 23 static bool rtl8187_is_radio_enabled(struct rtl8187_priv *priv) 24 24 {
drivers/net/wireless/rtl818x/rtl8187_rfkill.h drivers/net/wireless/rtl818x/rtl8187/rfkill.h
+1 -1
drivers/net/wireless/rtl818x/rtl8187_rtl8225.c drivers/net/wireless/rtl818x/rtl8187/rtl8225.c
··· 21 21 #include <net/mac80211.h> 22 22 23 23 #include "rtl8187.h" 24 - #include "rtl8187_rtl8225.h" 24 + #include "rtl8225.h" 25 25 26 26 static void rtl8225_write_bitbang(struct ieee80211_hw *dev, u8 addr, u16 data) 27 27 {
drivers/net/wireless/rtl818x/rtl8187_rtl8225.h drivers/net/wireless/rtl818x/rtl8187/rtl8225.h