summaryrefslogtreecommitdiff
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-02-20 03:22:13 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-04-05 18:52:13 +0300
commitd422be5f62ef7986d00afa4cd31eda5534ab7991 (patch)
treedcf517d094442f483471ce4c1dc6a01ae4352583 /arch/arm/mach-pxa
parent0378008a99243fc492e7f0c3aabfeee69a78398c (diff)
downloadlinux-d422be5f62ef7986d00afa4cd31eda5534ab7991.tar.xz
Input: eeti_ts - expect platform code to set interrupt trigger
Instead of keying interrupt trigger off GPIO polarity, let's rely on platform code to set it up properly for us. Reviewed-by: Daniel Mack <daniel@zonque.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/raumfeld.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c
index 1ed524ef9fff..e13f42a180cc 100644
--- a/arch/arm/mach-pxa/raumfeld.c
+++ b/arch/arm/mach-pxa/raumfeld.c
@@ -970,10 +970,19 @@ static struct eeti_ts_platform_data eeti_ts_pdata = {
.irq_gpio = GPIO_TOUCH_IRQ,
};
+static const struct resource raumfeld_controller_resources[] = __initconst {
+ {
+ .start = PXA_GPIO_TO_IRQ(GPIO_TOUCH_IRQ),
+ .end = PXA_GPIO_TO_IRQ(GPIO_TOUCH_IRQ),
+ .flags = IORESOURCE_IRQ | IRQF_TRIGGER_HIGH,
+ },
+};
+
static struct i2c_board_info raumfeld_controller_i2c_board_info __initdata = {
.type = "eeti_ts",
.addr = 0x0a,
- .irq = PXA_GPIO_TO_IRQ(GPIO_TOUCH_IRQ),
+ .resources = raumfeld_controller_resources,
+ .num_resources = ARRAY_SIZE(raumfeld_controller_resources),
.platform_data = &eeti_ts_pdata,
};