Lines Matching refs:client

63 	struct i2c_client		*client;
209 struct i2c_client *client = cdata->bat0;
216 ret = i2c_smbus_read_word_data(client,
219 dev_err(&client->dev, "Error reading design capacity: %d\n",
226 ret = i2c_smbus_read_word_data(client,
229 dev_err(&client->dev,
240 ret = i2c_smbus_read_i2c_block_data(client, MSHW0011_BAT0_REG_SERIAL_NO,
245 dev_err(&client->dev, "Error reading serial no: %d\n", ret);
252 ret = i2c_smbus_read_word_data(client, MSHW0011_BAT0_REG_CYCLE_CNT);
254 dev_err(&client->dev, "Error reading cycle count: %d\n", ret);
260 ret = i2c_smbus_read_i2c_block_data(client, MSHW0011_BAT0_REG_OEM,
263 dev_err(&client->dev, "Error reading cycle count: %d\n", ret);
273 struct i2c_client *client = cdata->bat0;
277 rate = i2c_smbus_read_word_data(client, MSHW0011_BAT0_REG_RATE);
281 capacity = i2c_smbus_read_word_data(client, MSHW0011_BAT0_REG_CAPACITY);
285 voltage = i2c_smbus_read_word_data(client, MSHW0011_BAT0_REG_VOLTAGE);
382 struct i2c_client *client = data->client;
383 struct mshw0011_data *cdata = i2c_get_clientdata(client);
447 static int mshw0011_install_space_handler(struct i2c_client *client)
453 adev = ACPI_COMPANION(&client->dev);
462 data->client = client;
475 dev_err(&client->dev, "Error installing i2c space handler\n");
485 static void mshw0011_remove_space_handler(struct i2c_client *client)
491 handle = ACPI_HANDLE(&client->dev);
506 static int mshw0011_probe(struct i2c_client *client)
509 struct device *dev = &client->dev;
518 data->adp1 = client;
519 i2c_set_clientdata(client, data);
540 dev_err(&client->dev, "Unable to run kthread err %d\n", error);
544 error = mshw0011_install_space_handler(client);
557 static void mshw0011_remove(struct i2c_client *client)
559 struct mshw0011_data *cdata = i2c_get_clientdata(client);
561 mshw0011_remove_space_handler(client);