Lines Matching refs:new_client
244 static int lm75_detect(struct i2c_client *new_client, in lm75_detect() argument
247 struct i2c_adapter *adapter = new_client->adapter; in lm75_detect()
282 conf = i2c_smbus_read_byte_data(new_client, 1); in lm75_detect()
287 if (i2c_smbus_read_byte_data(new_client, 7) == LM75A_ID) { in lm75_detect()
290 if (i2c_smbus_read_byte_data(new_client, 4) != 0xff in lm75_detect()
291 || i2c_smbus_read_byte_data(new_client, 5) != 0xff in lm75_detect()
292 || i2c_smbus_read_byte_data(new_client, 6) != 0xff) in lm75_detect()
295 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
296 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect()
299 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
300 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
301 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
302 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
303 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
305 os = i2c_smbus_read_byte_data(new_client, 3); in lm75_detect()
306 if (i2c_smbus_read_byte_data(new_client, 4) != os in lm75_detect()
307 || i2c_smbus_read_byte_data(new_client, 5) != os in lm75_detect()
308 || i2c_smbus_read_byte_data(new_client, 6) != os in lm75_detect()
309 || i2c_smbus_read_byte_data(new_client, 7) != os) in lm75_detect()
315 if (i2c_smbus_read_byte_data(new_client, i + 1) != conf in lm75_detect()
316 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
317 || i2c_smbus_read_byte_data(new_client, i + 3) != os) in lm75_detect()
319 if (is_lm75a && i2c_smbus_read_byte_data(new_client, i + 7) in lm75_detect()