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

Commit 079128eb authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: edt-ft5x06 - drop parsing of irq gpio



The driver does not use irq gpio as gpio, but rather relies on I2C core or
board code to set up client's structure IRQ line, so let's stop trying to
locate the resource and parse it.

Tested-by: default avatarFranklin S Cooper Jr <fcooper@ti.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 13c23cd1
Loading
Loading
Loading
Loading
+0 −10
Original line number Original line Diff line number Diff line
@@ -92,7 +92,6 @@ struct edt_ft5x06_ts_data {


	struct gpio_desc *reset_gpio;
	struct gpio_desc *reset_gpio;
	struct gpio_desc *wake_gpio;
	struct gpio_desc *wake_gpio;
	struct gpio_desc *irq_gpio;


#if defined(CONFIG_DEBUG_FS)
#if defined(CONFIG_DEBUG_FS)
	struct dentry *debug_dir;
	struct dentry *debug_dir;
@@ -927,15 +926,6 @@ static int edt_ft5x06_ts_probe(struct i2c_client *client,
		return error;
		return error;
	}
	}


	tsdata->irq_gpio = devm_gpiod_get_optional(&client->dev,
						   "irq", GPIOD_IN);
	if (IS_ERR(tsdata->irq_gpio)) {
		error = PTR_ERR(tsdata->irq_gpio);
		dev_err(&client->dev,
			"Failed to request GPIO irq pin, error %d\n", error);
		return error;
	}

	if (tsdata->wake_gpio) {
	if (tsdata->wake_gpio) {
		usleep_range(5000, 6000);
		usleep_range(5000, 6000);
		gpiod_set_value_cansleep(tsdata->wake_gpio, 1);
		gpiod_set_value_cansleep(tsdata->wake_gpio, 1);