Lines Matching defs:client
68 struct i2c_client *client;
78 client = i2c_new_client_device(adap, &info);
79 if (IS_ERR(client))
82 return client;
88 struct i2c_client *client;
104 client = of_i2c_register_device(adap, node);
105 if (IS_ERR(client)) {
131 struct i2c_client *client;
137 client = i2c_verify_client(dev);
138 if (!client)
141 return client;
184 struct i2c_client *client)
195 if (sysfs_streq(client->name, matches->compatible))
204 if (sysfs_streq(client->name, name))
213 struct i2c_client *client)
217 if (!(client && matches))
220 match = of_match_device(matches, &client->dev);
224 return i2c_of_match_device_sysfs(matches, client);
234 struct i2c_client *client;
247 client = of_i2c_register_device(adap, rd->dn);
248 if (IS_ERR(client)) {
249 dev_err(&adap->dev, "failed to create client for '%pOF'\n",
253 return notifier_from_errno(PTR_ERR(client));
263 client = of_find_i2c_device_by_node(rd->dn);
264 if (client == NULL)
268 i2c_unregister_device(client);
271 put_device(&client->dev);