Lines Matching defs:new_client
231 static int lm75_detect(struct i2c_client *new_client,
234 struct i2c_adapter *adapter = new_client->adapter;
251 cur = i2c_smbus_read_word_data(new_client, 0);
252 conf = i2c_smbus_read_byte_data(new_client, 1);
253 hyst = i2c_smbus_read_word_data(new_client, 2);
254 if (i2c_smbus_read_word_data(new_client, 4) != hyst
255 || i2c_smbus_read_word_data(new_client, 5) != hyst
256 || i2c_smbus_read_word_data(new_client, 6) != hyst
257 || i2c_smbus_read_word_data(new_client, 7) != hyst)
259 os = i2c_smbus_read_word_data(new_client, 3);
260 if (i2c_smbus_read_word_data(new_client, 4) != os
261 || i2c_smbus_read_word_data(new_client, 5) != os
262 || i2c_smbus_read_word_data(new_client, 6) != os
263 || i2c_smbus_read_word_data(new_client, 7) != os)
272 if (i2c_smbus_read_byte_data(new_client, i + 1) != conf
273 || i2c_smbus_read_word_data(new_client, i + 2) != hyst
274 || i2c_smbus_read_word_data(new_client, i + 3) != os)