Lines Matching refs:new_client
301 static int atxp1_detect(struct i2c_client *new_client, in atxp1_detect() argument
304 struct i2c_adapter *adapter = new_client->adapter; in atxp1_detect()
312 if (!((i2c_smbus_read_byte_data(new_client, 0x3e) == 0) && in atxp1_detect()
313 (i2c_smbus_read_byte_data(new_client, 0x3f) == 0) && in atxp1_detect()
314 (i2c_smbus_read_byte_data(new_client, 0xfe) == 0) && in atxp1_detect()
315 (i2c_smbus_read_byte_data(new_client, 0xff) == 0))) in atxp1_detect()
322 temp = i2c_smbus_read_byte_data(new_client, 0x00); in atxp1_detect()
324 if (!((i2c_smbus_read_byte_data(new_client, 0x10) == temp) && in atxp1_detect()
325 (i2c_smbus_read_byte_data(new_client, 0x11) == temp))) in atxp1_detect()
342 static int atxp1_probe(struct i2c_client *new_client, in atxp1_probe() argument
357 i2c_set_clientdata(new_client, data); in atxp1_probe()
363 err = sysfs_create_group(&new_client->dev.kobj, &atxp1_group); in atxp1_probe()
367 data->hwmon_dev = hwmon_device_register(&new_client->dev); in atxp1_probe()
373 dev_info(&new_client->dev, "Using VRM: %d.%d\n", in atxp1_probe()
379 sysfs_remove_group(&new_client->dev.kobj, &atxp1_group); in atxp1_probe()