]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: mxc: Fix i2c_board_info definitions
authorSascha Hauer <s.hauer@pengutronix.de>
Mon, 20 Jul 2009 06:18:47 +0000 (08:18 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 14 Aug 2009 10:40:37 +0000 (12:40 +0200)
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>
arch/arm/mach-mx1/mx1ads.c
arch/arm/mach-mx2/eukrea_cpuimx27.c
arch/arm/mach-mx2/pcm038.c
arch/arm/mach-mx3/pcm037.c
arch/arm/mach-mx3/pcm043.c

index 6af064d19b0f2c6715292f4ed8d051ff36c38b23..30f04e56fafebde098ea030234b2564269333edf 100644 (file)
@@ -104,12 +104,10 @@ static struct imxi2c_platform_data mx1ads_i2c_data = {
 
 static struct i2c_board_info mx1ads_i2c_devices[] = {
        {
-               I2C_BOARD_INFO("pcf857x", 0x22),
-               .type = "pcf8575",
+               I2C_BOARD_INFO("pcf8575", 0x22),
                .platform_data = &pcf857x_data[0],
        }, {
-               I2C_BOARD_INFO("pcf857x", 0x24),
-               .type = "pcf8575",
+               I2C_BOARD_INFO("pcf8575", 0x24),
                .platform_data = &pcf857x_data[1],
        },
 };
index a2c4181892ca492e5f4d0a698d1747924d81a041..7b187606682c8724505be2cad58a38d5d77242ce 100644 (file)
@@ -135,8 +135,7 @@ static struct imxi2c_platform_data eukrea_cpuimx27_i2c_1_data = {
 
 static struct i2c_board_info eukrea_cpuimx27_i2c_devices[] = {
        {
-               I2C_BOARD_INFO("rtc-pcf8563", 0x51),
-               .type = "pcf8563"
+               I2C_BOARD_INFO("pcf8563", 0x51),
        },
 };
 
index 638d078304c73622fbe70b0bdc70756f70a6fb71..9a3483c8f58c17983ed8b34c0449b1598a79c370 100644 (file)
@@ -186,17 +186,13 @@ static struct at24_platform_data board_eeprom = {
 };
 
 static struct i2c_board_info pcm038_i2c_devices[] = {
-       [0] = {
+       {
                I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */
                .platform_data = &board_eeprom,
-       },
-       [1] = {
-               I2C_BOARD_INFO("rtc-pcf8563", 0x51),
-               .type = "pcf8563"
-       },
-       [2] = {
+       }, {
+               I2C_BOARD_INFO("pcf8563", 0x51),
+       }, {
                I2C_BOARD_INFO("lm75", 0x4a),
-               .type = "lm75"
        }
 };
 
index 1b9140e2303310e00b93a7cf60e5f1626bfecfa8..b1b3282d15d3f9251be4cf849fdacfd6ed709acf 100644 (file)
@@ -339,8 +339,7 @@ static struct i2c_board_info pcm037_i2c_devices[] = {
                I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */
                .platform_data = &board_eeprom,
        }, {
-               I2C_BOARD_INFO("rtc-pcf8563", 0x51),
-               .type = "pcf8563",
+               I2C_BOARD_INFO("pcf8563", 0x51),
        }
 };
 
index 7c7d3cc07b89ddb43fee66db66cffe25fd6e4c78..e43276ea3b7fdbda111597e8cfb081801cfa29de 100644 (file)
@@ -133,8 +133,7 @@ static struct i2c_board_info pcm043_i2c_devices[] = {
                I2C_BOARD_INFO("at24", 0x52), /* E0=0, E1=1, E2=0 */
                .platform_data = &board_eeprom,
        }, {
-               I2C_BOARD_INFO("rtc-pcf8563", 0x51),
-               .type = "pcf8563",
+               I2C_BOARD_INFO("pcf8563", 0x51),
        }
 };
 #endif