struct input_dev *input;
struct work_struct work;
struct mutex mutex;
- int irq_gpio, irq, irq_active_high;
+ int irq_gpio, irq_active_high;
};
#define EETI_TS_BITDEPTH (11)
static void eeti_ts_start(struct eeti_ts *eeti)
{
- enable_irq(eeti->irq);
+ enable_irq(eeti->client->irq);
/* Read the events once to arm the IRQ */
eeti_ts_read(&eeti->work);
static void eeti_ts_stop(struct eeti_ts *eeti)
{
- disable_irq(eeti->irq);
+ disable_irq(eeti->client->irq);
cancel_work_sync(&eeti->work);
}
eeti->client = client;
eeti->input = input;
eeti->irq_gpio = pdata->irq_gpio;
- eeti->irq = gpio_to_irq(pdata->irq_gpio);
error = devm_gpio_request_one(dev, pdata->irq_gpio, GPIOF_IN,
client->name);
if (error)
return error;
- error = devm_request_irq(dev, eeti->irq, eeti_ts_isr, irq_flags,
+ error = devm_request_irq(dev, client->irq, eeti_ts_isr, irq_flags,
client->name, eeti);
if (error) {
dev_err(dev, "Unable to request touchscreen IRQ: %d\n",
mutex_unlock(&input_dev->mutex);
if (device_may_wakeup(&client->dev))
- enable_irq_wake(eeti->irq);
+ enable_irq_wake(client->irq);
return 0;
}
struct input_dev *input_dev = eeti->input;
if (device_may_wakeup(&client->dev))
- disable_irq_wake(eeti->irq);
+ disable_irq_wake(client->irq);
mutex_lock(&input_dev->mutex);