Lines Matching refs:new_client
152 struct i2c_client *new_client;
167 new_client = &data->client;
168 i2c_set_clientdata(new_client, data);
169 new_client->addr = address;
170 new_client->adapter = adapter;
171 new_client->driver = &w83l785ts_driver;
172 new_client->flags = 0;
186 if (((w83l785ts_read_value(new_client,
188 || ((w83l785ts_read_value(new_client,
201 man_id = (w83l785ts_read_value(new_client,
203 w83l785ts_read_value(new_client,
205 chip_id = w83l785ts_read_value(new_client,
223 strlcpy(new_client->name, "w83l785ts", I2C_NAME_SIZE);
231 if ((err = i2c_attach_client(new_client)))
239 err = device_create_file(&new_client->dev,
244 err = device_create_file(&new_client->dev,
250 data->class_dev = hwmon_device_register(&new_client->dev);
259 device_remove_file(&new_client->dev,
261 device_remove_file(&new_client->dev,
263 i2c_detach_client(new_client);