Lines Matching defs:new_client
547 static int adm9240_detect(struct i2c_client *new_client,
550 struct i2c_adapter *adapter = new_client->adapter;
552 int address = new_client->addr;
559 if (i2c_smbus_read_byte_data(new_client, ADM9240_REG_I2C_ADDR)
567 man_id = i2c_smbus_read_byte_data(new_client, ADM9240_REG_MAN_ID);
581 die_rev = i2c_smbus_read_byte_data(new_client, ADM9240_REG_DIE_REV);
591 static int adm9240_probe(struct i2c_client *new_client,
603 i2c_set_clientdata(new_client, data);
606 adm9240_init_client(new_client);
609 if ((err = sysfs_create_group(&new_client->dev.kobj, &adm9240_group)))
612 data->hwmon_dev = hwmon_device_register(&new_client->dev);
621 sysfs_remove_group(&new_client->dev.kobj, &adm9240_group);