Lines Matching refs:client

38 	struct i2c_client	*client;  member
56 static inline int ad7414_read(struct i2c_client *client, u8 reg) in ad7414_read() argument
59 return i2c_smbus_read_word_swapped(client, reg); in ad7414_read()
61 return i2c_smbus_read_byte_data(client, reg); in ad7414_read()
64 static inline int ad7414_write(struct i2c_client *client, u8 reg, u8 value) in ad7414_write() argument
66 return i2c_smbus_write_byte_data(client, reg, value); in ad7414_write()
72 struct i2c_client *client = data->client; in ad7414_update_device() local
79 dev_dbg(&client->dev, "starting ad7414 update\n"); in ad7414_update_device()
81 value = ad7414_read(client, AD7414_REG_TEMP); in ad7414_update_device()
83 dev_dbg(&client->dev, "AD7414_REG_TEMP err %d\n", in ad7414_update_device()
89 value = ad7414_read(client, AD7414_REG_LIMIT[i]); in ad7414_update_device()
91 dev_dbg(&client->dev, "AD7414 reg %d err %d\n", in ad7414_update_device()
127 struct i2c_client *client = data->client; in max_min_store() local
141 ad7414_write(client, reg, temp); in max_min_store()
172 static int ad7414_probe(struct i2c_client *client) in ad7414_probe() argument
174 struct device *dev = &client->dev; in ad7414_probe()
179 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA | in ad7414_probe()
187 data->client = client; in ad7414_probe()
190 dev_info(&client->dev, "chip found\n"); in ad7414_probe()
193 conf = i2c_smbus_read_byte_data(client, AD7414_REG_CONF); in ad7414_probe()
198 i2c_smbus_write_byte_data(client, AD7414_REG_CONF, conf); in ad7414_probe()
202 client->name, in ad7414_probe()