From de950268134cc6c5ac25a650c1809859a9d99637 Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 24 Jul 2011 14:40:23 +0000 Subject: rtl8366: unify rtl8366s and rtl8366rb platform data git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27754 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/files/include/linux/rtl8366.h | 30 ++++++++++++++++++++++ .../linux/generic/files/include/linux/rtl8366rb.h | 21 --------------- .../linux/generic/files/include/linux/rtl8366s.h | 28 -------------------- 3 files changed, 30 insertions(+), 49 deletions(-) create mode 100644 target/linux/generic/files/include/linux/rtl8366.h delete mode 100644 target/linux/generic/files/include/linux/rtl8366rb.h delete mode 100644 target/linux/generic/files/include/linux/rtl8366s.h (limited to 'target/linux/generic/files/include') diff --git a/target/linux/generic/files/include/linux/rtl8366.h b/target/linux/generic/files/include/linux/rtl8366.h new file mode 100644 index 000000000..654d42e60 --- /dev/null +++ b/target/linux/generic/files/include/linux/rtl8366.h @@ -0,0 +1,30 @@ +/* + * Platform data definition for the Realtek RTL8366RB/S ethernet switch driver + * + * Copyright (C) 2009-2010 Gabor Juhos + * + * 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 _RTL8366_H +#define _RTL8366_H + +#define RTL8366_DRIVER_NAME "rtl8366" +#define RTL8366S_DRIVER_NAME "rtl8366s" +#define RTL8366RB_DRIVER_NAME "rtl8366rb" + +struct rtl8366_initval { + unsigned reg; + u16 val; +}; + +struct rtl8366_platform_data { + unsigned gpio_sda; + unsigned gpio_sck; + unsigned num_initvals; + struct rtl8366_initval *initvals; +}; + +#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 053e2ec04..000000000 --- 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 - * - * 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 */ diff --git a/target/linux/generic/files/include/linux/rtl8366s.h b/target/linux/generic/files/include/linux/rtl8366s.h deleted file mode 100644 index 7d5daa481..000000000 --- a/target/linux/generic/files/include/linux/rtl8366s.h +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Platform data definition for the Realtek RTL8366S ethernet switch driver - * - * Copyright (C) 2009-2010 Gabor Juhos - * - * 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 _RTL8366S_H -#define _RTL8366S_H - -#define RTL8366S_DRIVER_NAME "rtl8366s" - -struct rtl8366s_initval { - unsigned reg; - u16 val; -}; - -struct rtl8366s_platform_data { - unsigned gpio_sda; - unsigned gpio_sck; - unsigned num_initvals; - struct rtl8366s_initval *initvals; -}; - -#endif /* _RTL8366_SMI_H */ -- cgit v1.2.3