Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa656308 authored by Heiko Stübner's avatar Heiko Stübner Committed by Dmitry Torokhov
Browse files

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



Previously the gpio was not configured at all.

Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 005a69d6
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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 @@ static int auo_pixcir_probe(struct i2c_client *client,
err_input_alloc:
	if (pdata->exit_hw)
		pdata->exit_hw(client);
err_gpio_dir:
	gpio_free(pdata->gpio_int);
err_gpio_int:
	kfree(ts);