Home
last modified time | relevance | path

Searched refs:wac_i2c (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/input/touchscreen/
Dwacom_i2c.c108 struct wacom_i2c *wac_i2c = dev_id; in wacom_i2c_irq() local
109 struct input_dev *input = wac_i2c->input; in wacom_i2c_irq()
110 u8 *data = wac_i2c->data; in wacom_i2c_irq()
115 error = i2c_master_recv(wac_i2c->client, in wacom_i2c_irq()
116 wac_i2c->data, sizeof(wac_i2c->data)); in wacom_i2c_irq()
128 if (!wac_i2c->prox) in wacom_i2c_irq()
129 wac_i2c->tool = (data[3] & (WACOM_ERASER | WACOM_INVERT)) ? in wacom_i2c_irq()
132 wac_i2c->prox = data[3] & WACOM_IN_PROXIMITY; in wacom_i2c_irq()
135 input_report_key(input, wac_i2c->tool, wac_i2c->prox); in wacom_i2c_irq()
149 struct wacom_i2c *wac_i2c = input_get_drvdata(dev); in wacom_i2c_open() local
[all …]