-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
staging: ste_rmi4: remove cross-dependent platform data
The ux500 machine was actually defining platform data for the staging driver ste_rmi4, which is not OK. Let us instead define some __weak platform data in the machine so that the staging driver can override it at compile-time and we can thus have the driver self-contained in staging. Reported-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
- Loading branch information
Linus Walleij
authored and
Greg Kroah-Hartman
committed
Jul 6, 2011
1 parent
6977a27
commit 857f727
Showing
3 changed files
with
35 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Some platform data for the RMI4 touchscreen that will override the __weak | ||
* platform data in the Ux500 machine if this driver is activated. | ||
*/ | ||
#include <linux/i2c.h> | ||
#include <linux/gpio.h> | ||
#include <linux/interrupt.h> | ||
#include <mach/gpio.h> | ||
#include <mach/irqs.h> | ||
#include "synaptics_i2c_rmi4.h" | ||
|
||
/* | ||
* Synaptics RMI4 touchscreen interface on the U8500 UIB | ||
*/ | ||
|
||
/* | ||
* Descriptor structure. | ||
* Describes the number of i2c devices on the bus that speak RMI. | ||
*/ | ||
static struct synaptics_rmi4_platform_data rmi4_i2c_dev_platformdata = { | ||
.irq_number = NOMADIK_GPIO_TO_IRQ(84), | ||
.irq_type = (IRQF_TRIGGER_FALLING | IRQF_SHARED), | ||
.x_flip = false, | ||
.y_flip = true, | ||
}; | ||
|
||
struct i2c_board_info __initdata mop500_i2c3_devices_u8500[] = { | ||
{ | ||
I2C_BOARD_INFO("synaptics_rmi4_i2c", 0x4B), | ||
.platform_data = &rmi4_i2c_dev_platformdata, | ||
}, | ||
}; |