Lines Matching refs:client
34 struct i2c_client *client = i2c_verify_client(dev);
38 if (!client || client->addr != data->addr)
40 if (client->flags & I2C_CLIENT_TEN)
48 if (client->dev.driver) {
49 driver = to_i2c_driver(client->dev.driver);
51 driver->alert(client, data->type, data->data);
53 dev_warn(&client->dev, "no driver alert()!\n");
55 dev_dbg(&client->dev, "alert with no driver\n");
179 * @ara: the ARA client on the relevant adapter
186 * It is assumed that ara is a valid i2c client previously returned by
206 static int i2c_slave_host_notify_cb(struct i2c_client *client,
209 struct i2c_slave_host_notify_status *status = client->dev.platform_data;
215 * parameter from the client.
224 i2c_handle_smbus_host_notify(client->adapter,
240 * i2c_new_slave_host_notify_device - get a client for SMBus host-notify support
249 * This returns the client, which should be ultimately freed using
259 struct i2c_client *client;
269 client = i2c_new_client_device(adapter, &host_notify_board_info);
270 if (IS_ERR(client)) {
272 return client;
275 ret = i2c_slave_register(client, i2c_slave_host_notify_cb);
277 i2c_unregister_device(client);
282 return client;
287 * i2c_free_slave_host_notify_device - free the client for SMBus host-notify
289 * @client: the client to free
294 void i2c_free_slave_host_notify_device(struct i2c_client *client)
296 if (IS_ERR_OR_NULL(client))
299 i2c_slave_unregister(client);
300 kfree(client->dev.platform_data);
301 i2c_unregister_device(client);