Lines Matching refs:client
56 * Client data (each client gets its own)
59 struct i2c_client *client;
76 struct i2c_client *client = data->client;
84 rv = i2c_smbus_read_byte_data(client,
90 rv = i2c_smbus_read_byte_data(client,
97 rv = i2c_smbus_read_word_swapped(client,
105 rv = i2c_smbus_read_word_swapped(client,
112 rv = i2c_smbus_read_word_swapped(client,
118 rv = i2c_smbus_read_word_swapped(client,
203 i2c_smbus_write_byte_data(data->client, reg,
220 struct i2c_client *client = data->client;
236 err = i2c_smbus_write_byte_data(client,
248 err = i2c_smbus_write_word_swapped(client,
263 err = i2c_smbus_write_byte_data(client, MAX31790_REG_FAN_CONFIG(channel),
337 struct i2c_client *client = data->client;
353 err = i2c_smbus_write_word_swapped(client,
382 err = i2c_smbus_write_byte_data(client, MAX31790_REG_FAN_CONFIG(channel),
489 static int max31790_init_client(struct i2c_client *client,
495 rv = i2c_smbus_read_byte_data(client,
501 rv = i2c_smbus_read_byte_data(client,
511 static int max31790_probe(struct i2c_client *client)
513 struct i2c_adapter *adapter = client->adapter;
514 struct device *dev = &client->dev;
527 data->client = client;
533 err = max31790_init_client(client, data);
537 hwmon_dev = devm_hwmon_device_register_with_info(dev, client->name,