Lines Matching refs:client

54 	struct i2c_client *client;  member
67 struct i2c_client *client = ts->client; in st1232_ts_read_data() local
70 .addr = client->addr, in st1232_ts_read_data()
75 .addr = client->addr, in st1232_ts_read_data()
83 ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); in st1232_ts_read_data()
191 dev_pm_qos_add_ancestor_request(&ts->client->dev, in st1232_ts_irq_handler()
223 static int st1232_ts_probe(struct i2c_client *client) in st1232_ts_probe() argument
225 const struct i2c_device_id *id = i2c_client_get_device_id(client); in st1232_ts_probe()
232 match = device_get_match_data(&client->dev); in st1232_ts_probe()
236 dev_err(&client->dev, "unknown device model\n"); in st1232_ts_probe()
240 if (!i2c_check_functionality(client->adapter, I2C_FUNC_I2C)) { in st1232_ts_probe()
241 dev_err(&client->dev, "need I2C_FUNC_I2C\n"); in st1232_ts_probe()
245 if (!client->irq) { in st1232_ts_probe()
246 dev_err(&client->dev, "no IRQ?\n"); in st1232_ts_probe()
250 ts = devm_kzalloc(&client->dev, sizeof(*ts), GFP_KERNEL); in st1232_ts_probe()
258 ts->read_buf = devm_kzalloc(&client->dev, ts->read_buf_len, GFP_KERNEL); in st1232_ts_probe()
262 input_dev = devm_input_allocate_device(&client->dev); in st1232_ts_probe()
266 ts->client = client; in st1232_ts_probe()
269 ts->reset_gpio = devm_gpiod_get_optional(&client->dev, NULL, in st1232_ts_probe()
273 dev_err(&client->dev, "Unable to request GPIO pin: %d.\n", in st1232_ts_probe()
280 error = devm_add_action_or_reset(&client->dev, st1232_ts_power_off, ts); in st1232_ts_probe()
282 dev_err(&client->dev, in st1232_ts_probe()
298 dev_err(&client->dev, in st1232_ts_probe()
318 dev_err(&client->dev, "failed to initialize MT slots\n"); in st1232_ts_probe()
322 error = devm_request_threaded_irq(&client->dev, client->irq, in st1232_ts_probe()
325 client->name, ts); in st1232_ts_probe()
327 dev_err(&client->dev, "Failed to register interrupt\n"); in st1232_ts_probe()
333 dev_err(&client->dev, "Unable to register %s input device\n", in st1232_ts_probe()
338 i2c_set_clientdata(client, ts); in st1232_ts_probe()
345 struct i2c_client *client = to_i2c_client(dev); in st1232_ts_suspend() local
346 struct st1232_ts_data *ts = i2c_get_clientdata(client); in st1232_ts_suspend()
348 disable_irq(client->irq); in st1232_ts_suspend()
350 if (!device_may_wakeup(&client->dev)) in st1232_ts_suspend()
358 struct i2c_client *client = to_i2c_client(dev); in st1232_ts_resume() local
359 struct st1232_ts_data *ts = i2c_get_clientdata(client); in st1232_ts_resume()
361 if (!device_may_wakeup(&client->dev)) in st1232_ts_resume()
364 enable_irq(client->irq); in st1232_ts_resume()