Lines Matching refs:client

71 	struct i2c_client *client;  member
92 struct i2c_client *client = data->client; in thmc50_update_device() local
102 int prog = i2c_smbus_read_byte_data(client, THMC50_REG_CONF); in thmc50_update_device()
107 data->temp_input[i] = i2c_smbus_read_byte_data(client, in thmc50_update_device()
109 data->temp_max[i] = i2c_smbus_read_byte_data(client, in thmc50_update_device()
111 data->temp_min[i] = i2c_smbus_read_byte_data(client, in thmc50_update_device()
114 i2c_smbus_read_byte_data(client, in thmc50_update_device()
119 i2c_smbus_read_byte_data(client, THMC50_REG_ANALOG_OUT); in thmc50_update_device()
121 i2c_smbus_read_byte_data(client, THMC50_REG_INTR); in thmc50_update_device()
143 struct i2c_client *client = data->client; in set_analog_out() local
154 i2c_smbus_write_byte_data(client, THMC50_REG_ANALOG_OUT, in set_analog_out()
157 config = i2c_smbus_read_byte_data(client, THMC50_REG_CONF); in set_analog_out()
162 i2c_smbus_write_byte_data(client, THMC50_REG_CONF, config); in set_analog_out()
197 struct i2c_client *client = data->client; in set_temp_min() local
207 i2c_smbus_write_byte_data(client, THMC50_REG_TEMP_MIN[nr], in set_temp_min()
226 struct i2c_client *client = data->client; in set_temp_max() local
236 i2c_smbus_write_byte_data(client, THMC50_REG_TEMP_MAX[nr], in set_temp_max()
321 static int thmc50_detect(struct i2c_client *client, in thmc50_detect() argument
327 struct i2c_adapter *adapter = client->adapter; in thmc50_detect()
336 client->addr, i2c_adapter_id(client->adapter)); in thmc50_detect()
338 company = i2c_smbus_read_byte_data(client, THMC50_REG_COMPANY_ID); in thmc50_detect()
339 revision = i2c_smbus_read_byte_data(client, THMC50_REG_DIE_CODE); in thmc50_detect()
340 config = i2c_smbus_read_byte_data(client, THMC50_REG_CONF); in thmc50_detect()
345 int id = i2c_adapter_id(client->adapter); in thmc50_detect()
351 adm1022_temp3[i + 1] == client->addr) { in thmc50_detect()
354 i2c_smbus_write_byte_data(client, in thmc50_detect()
376 struct i2c_client *client = data->client; in thmc50_init_client() local
379 data->analog_out = i2c_smbus_read_byte_data(client, in thmc50_init_client()
384 i2c_smbus_write_byte_data(client, THMC50_REG_ANALOG_OUT, in thmc50_init_client()
387 config = i2c_smbus_read_byte_data(client, THMC50_REG_CONF); in thmc50_init_client()
391 i2c_smbus_write_byte_data(client, THMC50_REG_CONF, config); in thmc50_init_client()
394 static int thmc50_probe(struct i2c_client *client, in thmc50_probe() argument
397 struct device *dev = &client->dev; in thmc50_probe()
406 data->client = client; in thmc50_probe()
419 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in thmc50_probe()