aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pnx4008
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-11-21 07:25:27 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-02-12 12:32:41 -0500
commit9d7f73632c87ef1b6187eb539d1efd63c3cf0e36 (patch)
treed4eda1040089f76fa092dc96432d708064a84ad5 /arch/arm/mach-pnx4008
parent44c5d739181886cff8e3903dfa38cd704f3d9640 (diff)
ARM: PNX4008: move i2c_adapter structure inside the drivers private data
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-pnx4008')
-rw-r--r--arch/arm/mach-pnx4008/i2c.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/arch/arm/mach-pnx4008/i2c.c b/arch/arm/mach-pnx4008/i2c.c
index 33146e832dd7..8103f9644e2d 100644
--- a/arch/arm/mach-pnx4008/i2c.c
+++ b/arch/arm/mach-pnx4008/i2c.c
@@ -18,32 +18,20 @@
18#include <mach/irqs.h> 18#include <mach/irqs.h>
19#include <mach/i2c.h> 19#include <mach/i2c.h>
20 20
21static struct i2c_adapter pnx_adapter0 = {
22 .name = I2C_CHIP_NAME "0",
23};
24
25static struct i2c_adapter pnx_adapter1 = {
26 .name = I2C_CHIP_NAME "1",
27};
28
29static struct i2c_adapter pnx_adapter2 = {
30 .name = "USB-I2C",
31};
32
33static struct i2c_pnx_data i2c0_data = { 21static struct i2c_pnx_data i2c0_data = {
34 .adapter = &pnx_adapter0, 22 .name = I2C_CHIP_NAME "0",
35 .base = PNX4008_I2C1_BASE, 23 .base = PNX4008_I2C1_BASE,
36 .irq = I2C_1_INT, 24 .irq = I2C_1_INT,
37}; 25};
38 26
39static struct i2c_pnx_data i2c1_data = { 27static struct i2c_pnx_data i2c1_data = {
40 .adapter = &pnx_adapter1, 28 .name = I2C_CHIP_NAME "1",
41 .base = PNX4008_I2C2_BASE, 29 .base = PNX4008_I2C2_BASE,
42 .irq = I2C_2_INT, 30 .irq = I2C_2_INT,
43}; 31};
44 32
45static struct i2c_pnx_data i2c2_data = { 33static struct i2c_pnx_data i2c2_data = {
46 .adapter = &pnx_adapter2, 34 .name = "USB-I2C",
47 .base = (PNX4008_USB_CONFIG_BASE + 0x300), 35 .base = (PNX4008_USB_CONFIG_BASE + 0x300),
48 .irq = USB_I2C_INT, 36 .irq = USB_I2C_INT,
49}; 37};