Lines Matching refs:client

54 	struct i2c_client *client;  member
85 struct i2c_client *client = tmp102->client; in tmp102_update_device() local
91 int status = i2c_smbus_read_word_swapped(client, in tmp102_update_device()
138 struct i2c_client *client = tmp102->client; in tmp102_set_temp() local
148 status = i2c_smbus_write_word_swapped(client, tmp102_reg[sda->index], in tmp102_set_temp()
177 static int tmp102_probe(struct i2c_client *client, in tmp102_probe() argument
180 struct device *dev = &client->dev; in tmp102_probe()
185 if (!i2c_check_functionality(client->adapter, in tmp102_probe()
196 i2c_set_clientdata(client, tmp102); in tmp102_probe()
197 tmp102->client = client; in tmp102_probe()
199 status = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_probe()
205 status = i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, in tmp102_probe()
211 status = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_probe()
227 hwmon_dev = hwmon_device_register_with_groups(dev, client->name, in tmp102_probe()
245 i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, in tmp102_probe()
250 static int tmp102_remove(struct i2c_client *client) in tmp102_remove() argument
252 struct tmp102 *tmp102 = i2c_get_clientdata(client); in tmp102_remove()
261 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_remove()
263 i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, in tmp102_remove()
273 struct i2c_client *client = to_i2c_client(dev); in tmp102_suspend() local
276 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_suspend()
281 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); in tmp102_suspend()
286 struct i2c_client *client = to_i2c_client(dev); in tmp102_resume() local
289 config = i2c_smbus_read_word_swapped(client, TMP102_CONF_REG); in tmp102_resume()
294 return i2c_smbus_write_word_swapped(client, TMP102_CONF_REG, config); in tmp102_resume()