Lines Matching defs:new_client
117 static int lm83_detect(struct i2c_client *new_client,
290 static int lm83_detect(struct i2c_client *new_client,
293 struct i2c_adapter *adapter = new_client->adapter;
301 if ((i2c_smbus_read_byte_data(new_client, LM83_REG_R_STATUS1) & 0xA8) ||
302 (i2c_smbus_read_byte_data(new_client, LM83_REG_R_STATUS2) & 0x48) ||
303 (i2c_smbus_read_byte_data(new_client, LM83_REG_R_CONFIG) & 0x41)) {
305 new_client->addr);
310 man_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_MAN_ID);
314 chip_id = i2c_smbus_read_byte_data(new_client, LM83_REG_R_CHIP_ID);
335 static int lm83_probe(struct i2c_client *new_client,
347 i2c_set_clientdata(new_client, data);
358 if ((err = sysfs_create_group(&new_client->dev.kobj, &lm83_group)))
362 if ((err = sysfs_create_group(&new_client->dev.kobj,
367 data->hwmon_dev = hwmon_device_register(&new_client->dev);
376 sysfs_remove_group(&new_client->dev.kobj, &lm83_group);
377 sysfs_remove_group(&new_client->dev.kobj, &lm83_group_opt);