Lines Matching defs:new_client
157 static int lm87_detect(struct i2c_client *new_client,
661 static int lm87_detect(struct i2c_client *new_client,
664 struct i2c_adapter *adapter = new_client->adapter;
671 if (lm87_read_value(new_client, LM87_REG_CONFIG) & 0x80)
675 cid = lm87_read_value(new_client, LM87_REG_COMPANY_ID);
676 rev = lm87_read_value(new_client, LM87_REG_REVISION);
686 new_client->addr);
695 static int lm87_probe(struct i2c_client *new_client,
707 i2c_set_clientdata(new_client, data);
712 lm87_init_client(new_client);
724 if ((err = sysfs_create_group(&new_client->dev.kobj, &lm87_group)))
728 if ((err = device_create_file(&new_client->dev,
730 || (err = device_create_file(&new_client->dev,
732 || (err = device_create_file(&new_client->dev,
734 || (err = device_create_file(&new_client->dev,
738 if ((err = device_create_file(&new_client->dev,
740 || (err = device_create_file(&new_client->dev,
742 || (err = device_create_file(&new_client->dev,
744 || (err = device_create_file(&new_client->dev,
750 if ((err = device_create_file(&new_client->dev,
752 || (err = device_create_file(&new_client->dev,
754 || (err = device_create_file(&new_client->dev,
756 || (err = device_create_file(&new_client->dev,
760 if ((err = device_create_file(&new_client->dev,
762 || (err = device_create_file(&new_client->dev,
764 || (err = device_create_file(&new_client->dev,
766 || (err = device_create_file(&new_client->dev,
772 if ((err = device_create_file(&new_client->dev,
774 || (err = device_create_file(&new_client->dev,
776 || (err = device_create_file(&new_client->dev,
778 || (err = device_create_file(&new_client->dev,
780 || (err = device_create_file(&new_client->dev,
782 || (err = device_create_file(&new_client->dev,
786 if ((err = device_create_file(&new_client->dev,
788 || (err = device_create_file(&new_client->dev,
790 || (err = device_create_file(&new_client->dev,
792 || (err = device_create_file(&new_client->dev,
794 || (err = device_create_file(&new_client->dev,
796 || (err = device_create_file(&new_client->dev,
798 || (err = device_create_file(&new_client->dev,
800 || (err = device_create_file(&new_client->dev,
807 if ((err = device_create_file(&new_client->dev,
809 || (err = device_create_file(&new_client->dev,
814 data->hwmon_dev = hwmon_device_register(&new_client->dev);
823 sysfs_remove_group(&new_client->dev.kobj, &lm87_group);
824 sysfs_remove_group(&new_client->dev.kobj, &lm87_group_opt);
826 lm87_write_value(new_client, LM87_REG_CONFIG, data->config);