Lines Matching refs:client
82 struct i2c_client *client; member
107 struct i2c_client *client = data->client; in adm1021_update_device() local
120 client, ADM1021_REG_TEMP(i)); in adm1021_update_device()
123 client, ADM1021_REG_TOS_R(i)); in adm1021_update_device()
126 (s8) i2c_smbus_read_byte_data(client, in adm1021_update_device()
130 data->alarms = i2c_smbus_read_byte_data(client, in adm1021_update_device()
138 client, ADM1023_REG_REM_TEMP_PREC) >> 5); in adm1021_update_device()
140 client, ADM1023_REG_REM_TOS_PREC) >> 5); in adm1021_update_device()
142 client, ADM1023_REG_REM_THYST_PREC) >> 5); in adm1021_update_device()
144 i2c_smbus_read_byte_data(client, in adm1021_update_device()
147 i2c_smbus_read_byte_data(client, in adm1021_update_device()
208 struct i2c_client *client = data->client; in set_temp_max() local
221 i2c_smbus_write_byte_data(client, ADM1021_REG_TOS_W(index), in set_temp_max()
234 struct i2c_client *client = data->client; in set_temp_min() local
247 i2c_smbus_write_byte_data(client, ADM1021_REG_THYST_W(index), in set_temp_min()
266 struct i2c_client *client = data->client; in set_low_power() local
279 client, ADM1021_REG_CONFIG_R); in set_low_power()
281 i2c_smbus_write_byte_data(client, ADM1021_REG_CONFIG_W, in set_low_power()
339 static int adm1021_detect(struct i2c_client *client, in adm1021_detect() argument
342 struct i2c_adapter *adapter = client->adapter; in adm1021_detect()
351 status = i2c_smbus_read_byte_data(client, ADM1021_REG_STATUS); in adm1021_detect()
352 conv_rate = i2c_smbus_read_byte_data(client, in adm1021_detect()
354 config = i2c_smbus_read_byte_data(client, ADM1021_REG_CONFIG_R); in adm1021_detect()
363 man_id = i2c_smbus_read_byte_data(client, ADM1021_REG_MAN_ID); in adm1021_detect()
364 dev_id = i2c_smbus_read_byte_data(client, ADM1021_REG_DEV_ID); in adm1021_detect()
389 llo = i2c_smbus_read_byte_data(client, ADM1021_REG_THYST_R(0)); in adm1021_detect()
390 rlo = i2c_smbus_read_byte_data(client, ADM1021_REG_THYST_R(1)); in adm1021_detect()
396 lte = i2c_smbus_read_byte_data(client, ADM1021_REG_TEMP(0)); in adm1021_detect()
397 rte = i2c_smbus_read_byte_data(client, ADM1021_REG_TEMP(1)); in adm1021_detect()
398 lhi = i2c_smbus_read_byte_data(client, ADM1021_REG_TOS_R(0)); in adm1021_detect()
399 rhi = i2c_smbus_read_byte_data(client, ADM1021_REG_TOS_R(1)); in adm1021_detect()
430 type_name, i2c_adapter_id(adapter), client->addr); in adm1021_detect()
436 static void adm1021_init_client(struct i2c_client *client) in adm1021_init_client() argument
439 i2c_smbus_write_byte_data(client, ADM1021_REG_CONFIG_W, in adm1021_init_client()
440 i2c_smbus_read_byte_data(client, ADM1021_REG_CONFIG_R) & 0xBF); in adm1021_init_client()
442 i2c_smbus_write_byte_data(client, ADM1021_REG_CONV_RATE_W, 0x04); in adm1021_init_client()
445 static int adm1021_probe(struct i2c_client *client, in adm1021_probe() argument
448 struct device *dev = &client->dev; in adm1021_probe()
456 data->client = client; in adm1021_probe()
462 adm1021_init_client(client); in adm1021_probe()
468 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, in adm1021_probe()