Lines Matching refs:client

90 	struct i2c_client *client;  member
106 struct i2c_client *client) in max6642_init_client() argument
113 config = i2c_smbus_read_byte_data(client, MAX6642_REG_R_CONFIG); in max6642_init_client()
115 i2c_smbus_write_byte_data(client, MAX6642_REG_W_CONFIG, in max6642_init_client()
118 data->temp_high[0] = i2c_smbus_read_byte_data(client, in max6642_init_client()
120 data->temp_high[1] = i2c_smbus_read_byte_data(client, in max6642_init_client()
125 static int max6642_detect(struct i2c_client *client, in max6642_detect() argument
128 struct i2c_adapter *adapter = client->adapter; in max6642_detect()
135 man_id = i2c_smbus_read_byte_data(client, MAX6642_REG_R_MAN_ID); in max6642_detect()
140 if (i2c_smbus_read_byte_data(client, 0x04) != 0x4D in max6642_detect()
141 || i2c_smbus_read_byte_data(client, 0x06) != 0x4D in max6642_detect()
142 || i2c_smbus_read_byte_data(client, 0xff) != 0x4D) in max6642_detect()
150 reg_config = i2c_smbus_read_byte_data(client, MAX6642_REG_R_CONFIG); in max6642_detect()
155 if (i2c_smbus_read_byte_data(client, 0x04) != reg_config in max6642_detect()
156 || i2c_smbus_read_byte_data(client, 0x06) != reg_config in max6642_detect()
157 || i2c_smbus_read_byte_data(client, 0xff) != reg_config) in max6642_detect()
160 reg_status = i2c_smbus_read_byte_data(client, MAX6642_REG_R_STATUS); in max6642_detect()
172 struct i2c_client *client = data->client; in max6642_update_device() local
179 val = i2c_smbus_read_byte_data(client, in max6642_update_device()
182 val = i2c_smbus_read_byte_data(client, in max6642_update_device()
186 val = i2c_smbus_read_byte_data(client, in max6642_update_device()
189 val = i2c_smbus_read_byte_data(client, in max6642_update_device()
193 data->alarms = i2c_smbus_read_byte_data(client, in max6642_update_device()
242 i2c_smbus_write_byte_data(data->client, attr2->index, in set_temp_max()
279 static int max6642_probe(struct i2c_client *client, in max6642_probe() argument
282 struct device *dev = &client->dev; in max6642_probe()
290 data->client = client; in max6642_probe()
294 max6642_init_client(data, client); in max6642_probe()
296 hwmon_dev = devm_hwmon_device_register_with_groups(&client->dev, in max6642_probe()
297 client->name, data, in max6642_probe()