diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-07-24 14:40:23 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-07-24 14:40:23 +0000 |
commit | 1afe8a0726b3e55b9467211b6dc9ea6b604f55e7 (patch) | |
tree | 2f8693d76a92376dff6ec849dfad639b72fd8ba9 /target/linux/generic/files/include | |
parent | 00dd85d8f61db55d6e08d224ed30f077075e9766 (diff) | |
download | upstream-1afe8a0726b3e55b9467211b6dc9ea6b604f55e7.tar.gz upstream-1afe8a0726b3e55b9467211b6dc9ea6b604f55e7.tar.bz2 upstream-1afe8a0726b3e55b9467211b6dc9ea6b604f55e7.zip |
rtl8366: unify rtl8366s and rtl8366rb platform data
SVN-Revision: 27754
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r-- | target/linux/generic/files/include/linux/rtl8366.h (renamed from target/linux/generic/files/include/linux/rtl8366s.h) | 16 | ||||
-rw-r--r-- | target/linux/generic/files/include/linux/rtl8366rb.h | 21 |
2 files changed, 9 insertions, 28 deletions
diff --git a/target/linux/generic/files/include/linux/rtl8366s.h b/target/linux/generic/files/include/linux/rtl8366.h index 7d5daa4817..654d42e609 100644 --- a/target/linux/generic/files/include/linux/rtl8366s.h +++ b/target/linux/generic/files/include/linux/rtl8366.h @@ -1,5 +1,5 @@ /* - * Platform data definition for the Realtek RTL8366S ethernet switch driver + * Platform data definition for the Realtek RTL8366RB/S ethernet switch driver * * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org> * @@ -8,21 +8,23 @@ * by the Free Software Foundation. */ -#ifndef _RTL8366S_H -#define _RTL8366S_H +#ifndef _RTL8366_H +#define _RTL8366_H +#define RTL8366_DRIVER_NAME "rtl8366" #define RTL8366S_DRIVER_NAME "rtl8366s" +#define RTL8366RB_DRIVER_NAME "rtl8366rb" -struct rtl8366s_initval { +struct rtl8366_initval { unsigned reg; u16 val; }; -struct rtl8366s_platform_data { +struct rtl8366_platform_data { unsigned gpio_sda; unsigned gpio_sck; unsigned num_initvals; - struct rtl8366s_initval *initvals; + struct rtl8366_initval *initvals; }; -#endif /* _RTL8366_SMI_H */ +#endif /* _RTL8366_H */ diff --git a/target/linux/generic/files/include/linux/rtl8366rb.h b/target/linux/generic/files/include/linux/rtl8366rb.h deleted file mode 100644 index 053e2ec04f..0000000000 --- a/target/linux/generic/files/include/linux/rtl8366rb.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Platform data definition for the Realtek RTL8366S ethernet switch driver - * - * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 as published - * by the Free Software Foundation. - */ - -#ifndef _RTL8366RB_H -#define _RTL8366RB_H - -#define RTL8366RB_DRIVER_NAME "rtl8366rb" - -struct rtl8366rb_platform_data { - unsigned gpio_sda; - unsigned gpio_sck; -}; - -#endif /* _RTL8366RB_SMI_H */ |