Lines Matching refs:client
42 struct i2c_client *client; member
60 static inline int ad7414_read(struct i2c_client *client, u8 reg) in ad7414_read() argument
63 return i2c_smbus_read_word_swapped(client, reg); in ad7414_read()
65 return i2c_smbus_read_byte_data(client, reg); in ad7414_read()
68 static inline int ad7414_write(struct i2c_client *client, u8 reg, u8 value) in ad7414_write() argument
70 return i2c_smbus_write_byte_data(client, reg, value); in ad7414_write()
76 struct i2c_client *client = data->client; in ad7414_update_device() local
83 dev_dbg(&client->dev, "starting ad7414 update\n"); in ad7414_update_device()
85 value = ad7414_read(client, AD7414_REG_TEMP); in ad7414_update_device()
87 dev_dbg(&client->dev, "AD7414_REG_TEMP err %d\n", in ad7414_update_device()
93 value = ad7414_read(client, AD7414_REG_LIMIT[i]); in ad7414_update_device()
95 dev_dbg(&client->dev, "AD7414 reg %d err %d\n", in ad7414_update_device()
131 struct i2c_client *client = data->client; in set_max_min() local
145 ad7414_write(client, reg, temp); in set_max_min()
178 static int ad7414_probe(struct i2c_client *client, in ad7414_probe() argument
181 struct device *dev = &client->dev; in ad7414_probe()
186 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA | in ad7414_probe()
194 data->client = client; in ad7414_probe()
197 dev_info(&client->dev, "chip found\n"); in ad7414_probe()
200 conf = i2c_smbus_read_byte_data(client, AD7414_REG_CONF); in ad7414_probe()
205 i2c_smbus_write_byte_data(client, AD7414_REG_CONF, conf); in ad7414_probe()
209 client->name, in ad7414_probe()