Lines Matching defs:new_client
660 static int lm90_detect(struct i2c_client *new_client,
663 struct i2c_adapter *adapter = new_client->adapter;
664 int address = new_client->addr;
672 if ((man_id = i2c_smbus_read_byte_data(new_client,
674 || (chip_id = i2c_smbus_read_byte_data(new_client,
676 || (reg_config1 = i2c_smbus_read_byte_data(new_client,
678 || (reg_convrate = i2c_smbus_read_byte_data(new_client,
686 reg_config2 = i2c_smbus_read_byte_data(new_client,
790 static int lm90_probe(struct i2c_client *new_client,
793 struct i2c_adapter *adapter = to_i2c_adapter(new_client->dev.parent);
802 i2c_set_clientdata(new_client, data);
809 new_client->flags &= ~I2C_CLIENT_PEC;
826 lm90_init_client(new_client);
829 if ((err = sysfs_create_group(&new_client->dev.kobj, &lm90_group)))
831 if (new_client->flags & I2C_CLIENT_PEC) {
832 if ((err = device_create_file(&new_client->dev,
837 if ((err = device_create_file(&new_client->dev,
842 data->hwmon_dev = hwmon_device_register(&new_client->dev);
851 sysfs_remove_group(&new_client->dev.kobj, &lm90_group);
852 device_remove_file(&new_client->dev, &dev_attr_pec);