Lines Matching refs:client
36 struct i2c_client *client;
67 static int g760a_read_value(struct i2c_client *client, enum g760a_regs reg)
69 return i2c_smbus_read_byte_data(client, reg);
72 static int g760a_write_value(struct i2c_client *client, enum g760a_regs reg,
75 return i2c_smbus_write_byte_data(client, reg, value);
85 struct i2c_client *client = data->client;
91 dev_dbg(&client->dev, "Starting g760a update\n");
93 data->set_cnt = g760a_read_value(client, G760A_REG_SET_CNT);
94 data->act_cnt = g760a_read_value(client, G760A_REG_ACT_CNT);
95 data->fan_sta = g760a_read_value(client, G760A_REG_FAN_STA);
142 struct i2c_client *client = data->client;
150 g760a_write_value(client, G760A_REG_SET_CNT, data->set_cnt);
173 static int g760a_probe(struct i2c_client *client)
175 struct device *dev = &client->dev;
179 if (!i2c_check_functionality(client->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
186 data->client = client;
193 hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name,