Lines Matching refs:client
54 struct i2c_client *client; member
84 struct i2c_client *client = tmp102->client; in tmp102_update_device() local
90 int status = i2c_smbus_read_word_swapped(client, in tmp102_update_device()
126 struct i2c_client *client = tmp102->client; in tmp102_set_temp() local
136 status = i2c_smbus_write_word_swapped(client, tmp102_reg[sda->index], in tmp102_set_temp()
165 static int tmp102_probe(struct i2c_client *client, in tmp102_probe() argument
168 struct device *dev = &client->dev; in tmp102_probe()
173 if (!i2c_check_functionality(client->adapter, in tmp102_probe()
184 i2c_set_clientdata(client, tmp102); in tmp102_probe()
185 tmp102->client = client; in tmp102_probe()
187 status = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_probe()
193 status = i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, in tmp102_probe()
199 status = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_probe()
213 hwmon_dev = hwmon_device_register_with_groups(dev, client->name, in tmp102_probe()
231 i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, in tmp102_probe()
236 static int tmp102_remove(struct i2c_client *client) in tmp102_remove() argument
238 struct tmp102 *tmp102 = i2c_get_clientdata(client); in tmp102_remove()
247 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_remove()
249 i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, in tmp102_remove()
259 struct i2c_client *client = to_i2c_client(dev); in tmp102_suspend() local
262 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_suspend()
267 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); in tmp102_suspend()
272 struct i2c_client *client = to_i2c_client(dev); in tmp102_resume() local
275 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_resume()
280 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); in tmp102_resume()