aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Stübner <heiko@sntech.de>2013-02-23 15:06:34 -0500
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2013-02-24 22:10:06 -0500
commitfa656308622fdaf54f2ff9ce8a70e4260f701b5d (patch)
tree13973f6060265a2b240c4a35d17383fa5decdf8f
parent005a69d632cd8694061c2dd27492fe874780b5ee (diff)
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>
-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 c6e19a96348e..813413eebab7 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,
504 goto err_gpio_int; 504 goto err_gpio_int;
505 } 505 }
506 506
507 ret = gpio_direction_input(pdata->gpio_int);
508 if (ret) {
509 dev_err(&client->dev, "setting direction of gpio %d failed %d\n",
510 pdata->gpio_int, ret);
511 goto err_gpio_dir;
512 }
513
507 if (pdata->init_hw) 514 if (pdata->init_hw)
508 pdata->init_hw(client); 515 pdata->init_hw(client);
509 516
@@ -592,6 +599,7 @@ err_fw_vers:
592err_input_alloc: 599err_input_alloc:
593 if (pdata->exit_hw) 600 if (pdata->exit_hw)
594 pdata->exit_hw(client); 601 pdata->exit_hw(client);
602err_gpio_dir:
595 gpio_free(pdata->gpio_int); 603 gpio_free(pdata->gpio_int);
596err_gpio_int: 604err_gpio_int:
597 kfree(ts); 605 kfree(ts);