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);
95 * Client data (each client gets its own)
128 static int w83l785ts_detect(struct i2c_client *client,
131 struct i2c_adapter *adapter = client->adapter;
139 if ((w83l785ts_read_value(client, W83L785TS_REG_CONFIG, 0) & 0x80)
140 || (w83l785ts_read_value(client, W83L785TS_REG_TYPE, 0) & 0xFC)) {
143 client->addr);
148 man_id = (w83l785ts_read_value(client, W83L785TS_REG_MAN_ID1, 0) << 8)
149 + w83l785ts_read_value(client, W83L785TS_REG_MAN_ID2, 0);
150 chip_id = w83l785ts_read_value(client, W83L785TS_REG_CHIP_ID, 0);
165 static int w83l785ts_probe(struct i2c_client *client)
168 struct device *dev = &client->dev;
175 i2c_set_clientdata(client, data);
206 static void w83l785ts_remove(struct i2c_client *client)
208 struct w83l785ts_data *data = i2c_get_clientdata(client);
211 device_remove_file(&client->dev,
213 device_remove_file(&client->dev,
217 static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval)
224 * We might be called during detection, at which point the client
227 if (i2c_get_clientdata(client)) {
228 dev = &client->dev;
231 dev = &client->adapter->dev;
241 value = i2c_smbus_read_byte_data(client, reg);
258 struct i2c_client *client = to_i2c_client(dev);
259 struct w83l785ts_data *data = i2c_get_clientdata(client);
264 dev_dbg(&client->dev, "Updating w83l785ts data.\n");
265 data->temp[0] = w83l785ts_read_value(client,
267 data->temp[1] = w83l785ts_read_value(client,