Lines Matching refs:client
60 struct i2c_client *client;
137 struct i2c_client *client = data->client;
145 ret = i2c_smbus_read_byte_data(client, TC654_REG_RPM(0));
150 ret = i2c_smbus_read_byte_data(client, TC654_REG_RPM(1));
155 ret = i2c_smbus_read_byte_data(client, TC654_REG_FAN_FAULT(0));
160 ret = i2c_smbus_read_byte_data(client, TC654_REG_FAN_FAULT(1));
165 ret = i2c_smbus_read_byte_data(client, TC654_REG_CONFIG);
170 ret = i2c_smbus_read_byte_data(client, TC654_REG_STATUS);
175 ret = i2c_smbus_read_byte_data(client, TC654_REG_DUTY_CYCLE);
231 struct i2c_client *client = data->client;
243 ret = i2c_smbus_write_byte_data(client, TC654_REG_FAN_FAULT(nr),
290 struct i2c_client *client = data->client;
319 ret = i2c_smbus_write_byte_data(client, TC654_REG_CONFIG, data->config);
340 struct i2c_client *client = data->client;
357 ret = i2c_smbus_write_byte_data(client, TC654_REG_CONFIG, data->config);
385 struct i2c_client *client = data->client;
398 ret = i2c_smbus_write_byte_data(client, TC654_REG_CONFIG, data->config);
402 ret = i2c_smbus_write_byte_data(client, TC654_REG_DUTY_CYCLE,
512 static int tc654_probe(struct i2c_client *client)
514 struct device *dev = &client->dev;
519 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
526 data->client = client;
529 ret = i2c_smbus_read_byte_data(client, TC654_REG_CONFIG);
536 devm_hwmon_device_register_with_groups(dev, client->name, data,
544 cdev = devm_thermal_of_cooling_device_register(dev, dev->of_node, client->name,