Input: auo-pixcir-ts - set input direction for interrupt gpio

A patch from »Input: auo_pixcir_ts - add devicetree support« in state Mainline for linux-kernel

From: Heiko Stuebner <heiko@...> Date: Thu, 21 Feb 2013 14:41:08 +0100

Commit-Message

Previously the gpio was not configured at all. Signed-off-by: Heiko Stuebner <heiko@...>

Patch-Comment

drivers/input/touchscreen/auo-pixcir-ts.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-)

Statistics

  • 8 lines added
  • 0 lines removed

Changes

------------------ drivers/input/touchscreen/auo-pixcir-ts.c -------------------
index c6e19a9..813413e 100644
@@ -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);
 
 

Recent Patches

About Us

Sed lacus. Donec lectus. Nullam pretium nibh ut turpis. Nam bibendum. In nulla tortor, elementum vel, tempor at, varius non, purus. Mauris vitae nisl nec metus placerat consectetuer.

Read More...