rtl8366: unify rtl8366s and rtl8366rb platform data

SVN-Revision: 27754
This commit is contained in:
Felix Fietkau
2011-07-24 14:40:23 +00:00
parent 00dd85d8f6
commit 1afe8a0726
11 changed files with 31 additions and 56 deletions

View File

@@ -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 */

View File

@@ -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 */