Lines Matching refs:client

50 	struct i2c_client *client;  member
62 struct i2c_client *client = data->client; in mcs_touchkey_interrupt() local
68 val = i2c_smbus_read_byte_data(client, chip->status_reg); in mcs_touchkey_interrupt()
70 dev_err(&client->dev, "i2c read error [%d]\n", val); in mcs_touchkey_interrupt()
92 dev_dbg(&client->dev, "key %d %d %s\n", data->key_val, data->key_code, in mcs_touchkey_interrupt()
99 static int mcs_touchkey_probe(struct i2c_client *client, in mcs_touchkey_probe() argument
110 pdata = dev_get_platdata(&client->dev); in mcs_touchkey_probe()
112 dev_err(&client->dev, "no platform data defined\n"); in mcs_touchkey_probe()
121 dev_err(&client->dev, "Failed to allocate memory\n"); in mcs_touchkey_probe()
126 data->client = client; in mcs_touchkey_probe()
142 fw_ver = i2c_smbus_read_byte_data(client, fw_reg); in mcs_touchkey_probe()
145 dev_err(&client->dev, "i2c read error[%d]\n", error); in mcs_touchkey_probe()
148 dev_info(&client->dev, "Firmware version: %d\n", fw_ver); in mcs_touchkey_probe()
152 input_dev->dev.parent = &client->dev; in mcs_touchkey_probe()
179 error = request_threaded_irq(client->irq, NULL, mcs_touchkey_interrupt, in mcs_touchkey_probe()
181 client->dev.driver->name, data); in mcs_touchkey_probe()
183 dev_err(&client->dev, "Failed to register interrupt\n"); in mcs_touchkey_probe()
191 i2c_set_clientdata(client, data); in mcs_touchkey_probe()
195 free_irq(client->irq, data); in mcs_touchkey_probe()
202 static int mcs_touchkey_remove(struct i2c_client *client) in mcs_touchkey_remove() argument
204 struct mcs_touchkey_data *data = i2c_get_clientdata(client); in mcs_touchkey_remove()
206 free_irq(client->irq, data); in mcs_touchkey_remove()
215 static void mcs_touchkey_shutdown(struct i2c_client *client) in mcs_touchkey_shutdown() argument
217 struct mcs_touchkey_data *data = i2c_get_clientdata(client); in mcs_touchkey_shutdown()
227 struct i2c_client *client = data->client; in mcs_touchkey_suspend() local
230 disable_irq(client->irq); in mcs_touchkey_suspend()
242 struct i2c_client *client = data->client; in mcs_touchkey_resume() local
249 enable_irq(client->irq); in mcs_touchkey_resume()