summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2013-02-23 12:06:34 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-02-24 19:10:06 -0800
commitfa656308622fdaf54f2ff9ce8a70e4260f701b5d (patch)
tree13973f6060265a2b240c4a35d17383fa5decdf8f /drivers/input
parent005a69d632cd8694061c2dd27492fe874780b5ee (diff)
downloadop-kernel-dev-fa656308622fdaf54f2ff9ce8a70e4260f701b5d.zip
op-kernel-dev-fa656308622fdaf54f2ff9ce8a70e4260f701b5d.tar.gz
Input: auo-pixcir-ts - set input direction for interrupt gpio
Previously the gpio was not configured at all. Signed-off-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/auo-pixcir-ts.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c
index c6e19a9..813413e 100644
--- a/drivers/input/touchscreen/auo-pixcir-ts.c
+++ b/drivers/input/touchscreen/auo-pixcir-ts.c
@@ -504,6 +504,13 @@ static int auo_pixcir_probe(struct i2c_client *client,
goto err_gpio_int;
}
+ ret = gpio_direction_input(pdata->gpio_int);
+ if (ret) {
+ dev_err(&client->dev, "setting direction of gpio %d failed %d\n",
+ pdata->gpio_int, ret);
+ goto err_gpio_dir;
+ }
+
if (pdata->init_hw)
pdata->init_hw(client);
@@ -592,6 +599,7 @@ err_fw_vers:
err_input_alloc:
if (pdata->exit_hw)
pdata->exit_hw(client);
+err_gpio_dir:
gpio_free(pdata->gpio_int);
err_gpio_int:
kfree(ts);
OpenPOWER on IntegriCloud