Skip to contentSkip to conversation

ARM: imx: only specify i2c device type once

PATCH New Uwe Kleine-König 2 participants 2 messages May 2, 2012 – May 29, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: imx: only specify i2c device type once

The first argument of I2C_BOARD_INFO is used to assign .type, so drop second assignment.

---
 arch/arm/mach-imx/mach-cpuimx35.c   |    1 -
 arch/arm/mach-imx/mach-cpuimx51sd.c |    1 -
 2 files changed, 2 deletions(-)
arch/arm/mach-imx/mach-cpuimx35.c +0 -1
index 8ecc872..b1a4796 100644
@@ -70,7 +70,6 @@ static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = {
 		I2C_BOARD_INFO("pcf8563", 0x51),
 	}, {
 		I2C_BOARD_INFO("tsc2007", 0x48),
-		.type		= "tsc2007",
 		.platform_data	= &tsc2007_info,
 		.irq		= IMX_GPIO_TO_IRQ(TSC2007_IRQGPIO),
 	},
arch/arm/mach-imx/mach-cpuimx51sd.c +0 -1
index 9fbe923..89eb93c 100644
@@ -124,7 +124,6 @@ static struct i2c_board_info eukrea_cpuimx51sd_i2c_devices[] = {
 		I2C_BOARD_INFO("pcf8563", 0x51),
 	}, {
 		I2C_BOARD_INFO("tsc2007", 0x49),
-		.type		= "tsc2007",
 		.platform_data	= &tsc2007_info,
 		.irq		= IMX_GPIO_TO_IRQ(TSC2007_IRQGPIO),
 	},
Signature · 1 line
1.7.10
maintainer Applied
#1 lore raw

PATCH 1/1 ARM: imx: only specify i2c device type once

Quoted 4 lines · Uwe Kleine-K?nig

The first argument of I2C_BOARD_INFO is used to assign .type, so drop second assignment.

Applied, thanks

Sascha

Quoted 33 lines
---
 arch/arm/mach-imx/mach-cpuimx35.c   |    1 -
 arch/arm/mach-imx/mach-cpuimx51sd.c |    1 -
 2 files changed, 2 deletions(-)
arch/arm/mach-imx/mach-cpuimx35.c +0 -1
index 8ecc872..b1a4796 100644
@@ -70,7 +70,6 @@ static struct i2c_board_info eukrea_cpuimx35_i2c_devices[] = {
 		I2C_BOARD_INFO("pcf8563", 0x51),
 	}, {
 		I2C_BOARD_INFO("tsc2007", 0x48),
-		.type		= "tsc2007",
 		.platform_data	= &tsc2007_info,
 		.irq		= IMX_GPIO_TO_IRQ(TSC2007_IRQGPIO),
 	},
arch/arm/mach-imx/mach-cpuimx51sd.c +0 -1
index 9fbe923..89eb93c 100644
@@ -124,7 +124,6 @@ static struct i2c_board_info eukrea_cpuimx51sd_i2c_devices[] = {
 		I2C_BOARD_INFO("pcf8563", 0x51),
 	}, {
 		I2C_BOARD_INFO("tsc2007", 0x49),
-		.type		= "tsc2007",
 		.platform_data	= &tsc2007_info,
 		.irq		= IMX_GPIO_TO_IRQ(TSC2007_IRQGPIO),
 	},
Signature · 1 line
1.7.10
Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |