提交 fa656308 编写于 作者: H Heiko Stübner 提交者: Dmitry Torokhov

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

Previously the gpio was not configured at all.
Signed-off-by: NHeiko Stuebner <heiko@sntech.de>
Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 005a69d6
...@@ -504,6 +504,13 @@ static int auo_pixcir_probe(struct i2c_client *client, ...@@ -504,6 +504,13 @@ static int auo_pixcir_probe(struct i2c_client *client,
goto err_gpio_int; 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) if (pdata->init_hw)
pdata->init_hw(client); pdata->init_hw(client);
...@@ -592,6 +599,7 @@ static int auo_pixcir_probe(struct i2c_client *client, ...@@ -592,6 +599,7 @@ static int auo_pixcir_probe(struct i2c_client *client,
err_input_alloc: err_input_alloc:
if (pdata->exit_hw) if (pdata->exit_hw)
pdata->exit_hw(client); pdata->exit_hw(client);
err_gpio_dir:
gpio_free(pdata->gpio_int); gpio_free(pdata->gpio_int);
err_gpio_int: err_gpio_int:
kfree(ts); kfree(ts);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册