diff options
author | Arnd Bergmann <arnd@arndb.de> | 2013-03-21 17:51:10 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-04-08 07:59:25 -0400 |
commit | e5a1f68203e4dab8fdbb4c7d20977e6a5dbc7a49 (patch) | |
tree | b50c3b38ac4a7a0e4a2d1caf0facd2a266d38ace /arch/arm | |
parent | ab0fc6ce4825311e1842bb3c46611d0f02d189df (diff) |
staging: ste_rmi4: kill platform_data hack
There is only one instance of the platform data for synaptics_i2c_rmi4
in the mainline kernel, so there is no point of pretending its
variable here. The only member that has a dependency on the platform
is actually the interrupt number, and there is a field in the
i2c_client structure that gets initialized from the board info,
so we can trivially move the board_into into the platform without
knowledge of the platform_data structure.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-ux500/board-mop500-u8500uib.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/board-mop500-u8500uib.c b/arch/arm/mach-ux500/board-mop500-u8500uib.c index ead91c968ff4..0b5e14a449d7 100644 --- a/arch/arm/mach-ux500/board-mop500-u8500uib.c +++ b/arch/arm/mach-ux500/board-mop500-u8500uib.c | |||
@@ -16,8 +16,11 @@ | |||
16 | 16 | ||
17 | #include "board-mop500.h" | 17 | #include "board-mop500.h" |
18 | 18 | ||
19 | /* Dummy data that can be overridden by staging driver */ | 19 | static struct i2c_board_info __initdata mop500_i2c3_devices_u8500[] = { |
20 | struct i2c_board_info __initdata __weak mop500_i2c3_devices_u8500[] = { | 20 | { |
21 | I2C_BOARD_INFO("synaptics_rmi4_i2c", 0x4B), | ||
22 | .irq = NOMADIK_GPIO_TO_IRQ(84), | ||
23 | }, | ||
21 | }; | 24 | }; |
22 | 25 | ||
23 | /* | 26 | /* |