• Home
  • Raw
  • Download

Lines Matching refs:new_client

270 static int lm77_detect(struct i2c_client *new_client,  in lm77_detect()  argument
273 struct i2c_adapter *adapter = new_client->adapter; in lm77_detect()
295 cur = i2c_smbus_read_word_data(new_client, 0); in lm77_detect()
296 conf = i2c_smbus_read_byte_data(new_client, 1); in lm77_detect()
297 hyst = i2c_smbus_read_word_data(new_client, 2); in lm77_detect()
298 crit = i2c_smbus_read_word_data(new_client, 3); in lm77_detect()
299 min = i2c_smbus_read_word_data(new_client, 4); in lm77_detect()
300 max = i2c_smbus_read_word_data(new_client, 5); in lm77_detect()
302 if (i2c_smbus_read_byte_data(new_client, i + 1) != conf in lm77_detect()
303 || i2c_smbus_read_word_data(new_client, i + 2) != hyst in lm77_detect()
304 || i2c_smbus_read_word_data(new_client, i + 3) != crit in lm77_detect()
305 || i2c_smbus_read_word_data(new_client, i + 4) != min in lm77_detect()
306 || i2c_smbus_read_word_data(new_client, i + 5) != max) in lm77_detect()
323 cur = i2c_smbus_read_word_data(new_client, 0); in lm77_detect()
324 if (i2c_smbus_read_word_data(new_client, 6) != cur in lm77_detect()
325 || i2c_smbus_read_word_data(new_client, 7) != cur) in lm77_detect()
327 hyst = i2c_smbus_read_word_data(new_client, 2); in lm77_detect()
328 if (i2c_smbus_read_word_data(new_client, 6) != hyst in lm77_detect()
329 || i2c_smbus_read_word_data(new_client, 7) != hyst) in lm77_detect()
331 min = i2c_smbus_read_word_data(new_client, 4); in lm77_detect()
332 if (i2c_smbus_read_word_data(new_client, 6) != min in lm77_detect()
333 || i2c_smbus_read_word_data(new_client, 7) != min) in lm77_detect()
341 static int lm77_probe(struct i2c_client *new_client, in lm77_probe() argument
353 i2c_set_clientdata(new_client, data); in lm77_probe()
358 lm77_init_client(new_client); in lm77_probe()
361 err = sysfs_create_group(&new_client->dev.kobj, &lm77_group); in lm77_probe()
365 data->hwmon_dev = hwmon_device_register(&new_client->dev); in lm77_probe()
374 sysfs_remove_group(&new_client->dev.kobj, &lm77_group); in lm77_probe()