Lines Matching refs:client
55 struct i2c_client *client;
63 static int nvt_ts_read_data(struct i2c_client *client, u8 reg, u8 *data, int count)
67 .addr = client->addr,
72 .addr = client->addr,
80 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg));
82 dev_err(&client->dev, "Error reading from 0x%02x: %d\n", reg, ret);
92 struct device *dev = &data->client->dev;
97 error = nvt_ts_read_data(data->client, NVT_TS_TOUCH_START, data->buf,
146 enable_irq(data->client->irq);
156 disable_irq(data->client->irq);
186 static int nvt_ts_probe(struct i2c_client *client)
188 struct device *dev = &client->dev;
193 if (!client->irq) {
202 data->client = client;
203 i2c_set_clientdata(client, data);
214 error = nvt_ts_read_data(data->client, NVT_TS_PARAMETERS_START,
245 input->name = client->name;
262 error = devm_request_threaded_irq(dev, client->irq, NULL, nvt_ts_irq,
265 client->name, data);