Lines Matching refs:client
70 * addresses where the high 8 bits contain the I2C client address.
75 struct i2c_client *client = context;
76 int ret, orig_addr = client->addr;
79 dev_err(&client->dev, "Error I2C address not specified\n");
83 client->addr = (reg & REG_ADDR_MASK) >> REG_ADDR_SHIFT;
84 ret = i2c_smbus_read_byte_data(client, reg & REG_OFFSET_MASK);
85 client->addr = orig_addr;
97 struct i2c_client *client = context;
98 int ret, orig_addr = client->addr;
101 dev_err(&client->dev, "Error I2C address not specified\n");
105 client->addr = (reg & REG_ADDR_MASK) >> REG_ADDR_SHIFT;
106 ret = i2c_smbus_write_byte_data(client, reg & REG_OFFSET_MASK, val);
107 client->addr = orig_addr;
188 static int cht_wc_probe(struct i2c_client *client)
190 struct device *dev = &client->dev;
203 if (client->irq < 0)
214 pmic->irq = client->irq;
216 i2c_set_clientdata(client, pmic);
218 pmic->regmap = devm_regmap_init(dev, NULL, client, &cht_wc_regmap_cfg);
234 static void cht_wc_shutdown(struct i2c_client *client)
236 struct intel_soc_pmic *pmic = i2c_get_clientdata(client);