Lines Matching refs:client

65 static int w83l785ts_probe(struct i2c_client *client);
66 static int w83l785ts_detect(struct i2c_client *client,
68 static void w83l785ts_remove(struct i2c_client *client);
69 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval);
128 static int w83l785ts_detect(struct i2c_client *client, in w83l785ts_detect() argument
131 struct i2c_adapter *adapter = client->adapter; in w83l785ts_detect()
139 if ((w83l785ts_read_value(client, W83L785TS_REG_CONFIG, 0) & 0x80) in w83l785ts_detect()
140 || (w83l785ts_read_value(client, W83L785TS_REG_TYPE, 0) & 0xFC)) { in w83l785ts_detect()
143 client->addr); in w83l785ts_detect()
148 man_id = (w83l785ts_read_value(client, W83L785TS_REG_MAN_ID1, 0) << 8) in w83l785ts_detect()
149 + w83l785ts_read_value(client, W83L785TS_REG_MAN_ID2, 0); in w83l785ts_detect()
150 chip_id = w83l785ts_read_value(client, W83L785TS_REG_CHIP_ID, 0); in w83l785ts_detect()
165 static int w83l785ts_probe(struct i2c_client *client) in w83l785ts_probe() argument
168 struct device *dev = &client->dev; in w83l785ts_probe()
175 i2c_set_clientdata(client, data); in w83l785ts_probe()
206 static void w83l785ts_remove(struct i2c_client *client) in w83l785ts_remove() argument
208 struct w83l785ts_data *data = i2c_get_clientdata(client); in w83l785ts_remove()
211 device_remove_file(&client->dev, in w83l785ts_remove()
213 device_remove_file(&client->dev, in w83l785ts_remove()
217 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval) in w83l785ts_read_value() argument
227 if (i2c_get_clientdata(client)) { in w83l785ts_read_value()
228 dev = &client->dev; in w83l785ts_read_value()
231 dev = &client->adapter->dev; in w83l785ts_read_value()
241 value = i2c_smbus_read_byte_data(client, reg); in w83l785ts_read_value()
258 struct i2c_client *client = to_i2c_client(dev); in w83l785ts_update_device() local
259 struct w83l785ts_data *data = i2c_get_clientdata(client); in w83l785ts_update_device()
264 dev_dbg(&client->dev, "Updating w83l785ts data.\n"); in w83l785ts_update_device()
265 data->temp[0] = w83l785ts_read_value(client, in w83l785ts_update_device()
267 data->temp[1] = w83l785ts_read_value(client, in w83l785ts_update_device()