summaryrefslogtreecommitdiff
path: root/drivers/input/touchscreen
diff options
context:
space:
mode:
authorRebecca Schultz Zavin <rebecca@android.com>2009-03-29 22:10:22 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:37:57 -0800
commit56b8a6588381725d8e60e6d56a50759c2219f666 (patch)
tree577714f6c4513b3279d62e66b2dbf11e25cea34d /drivers/input/touchscreen
parentdc57c5002580ed0fe0896cbb0c3de04612b0e9c8 (diff)
Input: synaptics_i2c_rmi: Add irqflags to platform data struct to pass them to driver
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com> Signed-off-by: Arve Hjønnevåg <arve@android.com>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r--drivers/input/touchscreen/synaptics_i2c_rmi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/synaptics_i2c_rmi.c b/drivers/input/touchscreen/synaptics_i2c_rmi.c
index 65436f65a92e..5729602cbb63 100644
--- a/drivers/input/touchscreen/synaptics_i2c_rmi.c
+++ b/drivers/input/touchscreen/synaptics_i2c_rmi.c
@@ -266,6 +266,7 @@ static int synaptics_ts_probe(
uint16_t max_x, max_y;
int fuzz_x, fuzz_y, fuzz_p, fuzz_w;
struct synaptics_i2c_rmi_platform_data *pdata;
+ unsigned long irqflags;
int inactive_area_left;
int inactive_area_right;
int inactive_area_top;
@@ -345,6 +346,7 @@ static int synaptics_ts_probe(
pdata++;
ts->flags = pdata->flags;
ts->sensitivity_adjust = pdata->sensitivity_adjust;
+ irqflags = pdata->irqflags;
inactive_area_left = pdata->inactive_left;
inactive_area_right = pdata->inactive_right;
inactive_area_top = pdata->inactive_top;
@@ -362,6 +364,7 @@ static int synaptics_ts_probe(
fuzz_p = pdata->fuzz_p;
fuzz_w = pdata->fuzz_w;
} else {
+ irqflags = 0;
inactive_area_left = 0;
inactive_area_right = 0;
inactive_area_top = 0;
@@ -513,7 +516,7 @@ static int synaptics_ts_probe(
goto err_input_register_device_failed;
}
if (client->irq) {
- ret = request_irq(client->irq, synaptics_ts_irq_handler, 0, client->name, ts);
+ ret = request_irq(client->irq, synaptics_ts_irq_handler, irqflags, client->name, ts);
if (ret == 0) {
ret = i2c_smbus_write_byte_data(ts->client, 0xf1, 0x01); /* enable abs int */
if (ret)