Lines Matching defs:new_client
452 static int lm63_detect(struct i2c_client *new_client,
455 struct i2c_adapter *adapter = new_client->adapter;
458 int address = new_client->addr;
463 man_id = i2c_smbus_read_byte_data(new_client, LM63_REG_MAN_ID);
464 chip_id = i2c_smbus_read_byte_data(new_client, LM63_REG_CHIP_ID);
466 reg_config1 = i2c_smbus_read_byte_data(new_client,
468 reg_config2 = i2c_smbus_read_byte_data(new_client,
470 reg_alert_status = i2c_smbus_read_byte_data(new_client,
472 reg_alert_mask = i2c_smbus_read_byte_data(new_client,
496 static int lm63_probe(struct i2c_client *new_client,
508 i2c_set_clientdata(new_client, data);
518 lm63_init_client(new_client);
521 if ((err = sysfs_create_group(&new_client->dev.kobj,
525 if ((err = sysfs_create_group(&new_client->dev.kobj,
530 data->hwmon_dev = hwmon_device_register(&new_client->dev);
539 sysfs_remove_group(&new_client->dev.kobj, &lm63_group);
540 sysfs_remove_group(&new_client->dev.kobj, &lm63_group_fan1);