diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-07-20 02:18:47 -0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-08-14 06:40:37 -0400 |
commit | cf87a6e2fe95891575c45ba1a0ecb8cf53c09732 (patch) | |
tree | 569cb46eccc3b23b14fca040a8e505574bf053b0 /arch/arm | |
parent | a961bf380b93741c2191f8efc8f5f1c65224b216 (diff) |
ARM: mxc: Fix i2c_board_info definitions
Fix i2c_board_info definitions - we were defining the 'type' field
of these structures twice since the first argument of I2C_BOARD_INFO
sets this field. Move the second definition into I2C_BOARD_INFO().
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-mx1/mx1ads.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-mx2/eukrea_cpuimx27.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-mx2/pcm038.c | 12 | ||||
-rw-r--r-- | arch/arm/mach-mx3/pcm037.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-mx3/pcm043.c | 3 |
5 files changed, 9 insertions, 18 deletions
diff --git a/arch/arm/mach-mx1/mx1ads.c b/arch/arm/mach-mx1/mx1ads.c index 6af064d19b0f..30f04e56fafe 100644 --- a/arch/arm/mach-mx1/mx1ads.c +++ b/arch/arm/mach-mx1/mx1ads.c | |||
@@ -104,12 +104,10 @@ static struct imxi2c_platform_data mx1ads_i2c_data = { | |||
104 | 104 | ||
105 | static struct i2c_board_info mx1ads_i2c_devices[] = { | 105 | static struct i2c_board_info mx1ads_i2c_devices[] = { |
106 | { | 106 | { |
107 | I2C_BOARD_INFO("pcf857x", 0x22), | 107 | I2C_BOARD_INFO("pcf8575", 0x22), |
108 | .type = "pcf8575", | ||
109 | .platform_data = &pcf857x_data[0], | 108 | .platform_data = &pcf857x_data[0], |
110 | }, { | 109 | }, { |
111 | I2C_BOARD_INFO("pcf857x", 0x24), | 110 | I2C_BOARD_INFO("pcf8575", 0x24), |
112 | .type = "pcf8575", | ||
113 | .platform_data = &pcf857x_data[1], | 111 | .platform_data = &pcf857x_data[1], |
114 | }, | 112 | }, |
115 | }; | 113 | }; |
diff --git a/arch/arm/mach-mx2/eukrea_cpuimx27.c b/arch/arm/mach-mx2/eukrea_cpuimx27.c index a2c4181892ca..7b187606682c 100644 --- a/arch/arm/mach-mx2/eukrea_cpuimx27.c +++ b/arch/arm/mach-mx2/eukrea_cpuimx27.c | |||
@@ -135,8 +135,7 @@ static struct imxi2c_platform_data eukrea_cpuimx27_i2c_1_data = { | |||
135 | 135 | ||
136 | static struct i2c_board_info eukrea_cpuimx27_i2c_devices[] = { | 136 | static struct i2c_board_info eukrea_cpuimx27_i2c_devices[] = { |
137 | { | 137 | { |
138 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 138 | I2C_BOARD_INFO("pcf8563", 0x51), |
139 | .type = "pcf8563" | ||
140 | }, | 139 | }, |
141 | }; | 140 | }; |
142 | 141 | ||
diff --git a/arch/arm/mach-mx2/pcm038.c b/arch/arm/mach-mx2/pcm038.c index 638d078304c7..9a3483c8f58c 100644 --- a/arch/arm/mach-mx2/pcm038.c +++ b/arch/arm/mach-mx2/pcm038.c | |||
@@ -186,17 +186,13 @@ static struct at24_platform_data board_eeprom = { | |||
186 | }; | 186 | }; |
187 | 187 | ||
188 | static struct i2c_board_info pcm038_i2c_devices[] = { | 188 | static struct i2c_board_info pcm038_i2c_devices[] = { |
189 | [0] = { | 189 | { |
190 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ | 190 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ |
191 | .platform_data = &board_eeprom, | 191 | .platform_data = &board_eeprom, |
192 | }, | 192 | }, { |
193 | [1] = { | 193 | I2C_BOARD_INFO("pcf8563", 0x51), |
194 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 194 | }, { |
195 | .type = "pcf8563" | ||
196 | }, | ||
197 | [2] = { | ||
198 | I2C_BOARD_INFO("lm75", 0x4a), | 195 | I2C_BOARD_INFO("lm75", 0x4a), |
199 | .type = "lm75" | ||
200 | } | 196 | } |
201 | }; | 197 | }; |
202 | 198 | ||
diff --git a/arch/arm/mach-mx3/pcm037.c b/arch/arm/mach-mx3/pcm037.c index 1b9140e23033..b1b3282d15d3 100644 --- a/arch/arm/mach-mx3/pcm037.c +++ b/arch/arm/mach-mx3/pcm037.c | |||
@@ -339,8 +339,7 @@ static struct i2c_board_info pcm037_i2c_devices[] = { | |||
339 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ | 339 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ |
340 | .platform_data = &board_eeprom, | 340 | .platform_data = &board_eeprom, |
341 | }, { | 341 | }, { |
342 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 342 | I2C_BOARD_INFO("pcf8563", 0x51), |
343 | .type = "pcf8563", | ||
344 | } | 343 | } |
345 | }; | 344 | }; |
346 | 345 | ||
diff --git a/arch/arm/mach-mx3/pcm043.c b/arch/arm/mach-mx3/pcm043.c index 7c7d3cc07b89..e43276ea3b7f 100644 --- a/arch/arm/mach-mx3/pcm043.c +++ b/arch/arm/mach-mx3/pcm043.c | |||
@@ -133,8 +133,7 @@ static struct i2c_board_info pcm043_i2c_devices[] = { | |||
133 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ | 133 | I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */ |
134 | .platform_data = &board_eeprom, | 134 | .platform_data = &board_eeprom, |
135 | }, { | 135 | }, { |
136 | I2C_BOARD_INFO("rtc-pcf8563", 0x51), | 136 | I2C_BOARD_INFO("pcf8563", 0x51), |
137 | .type = "pcf8563", | ||
138 | } | 137 | } |
139 | }; | 138 | }; |
140 | #endif | 139 | #endif |