diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-07-29 00:09:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-29 01:49:56 -0400 |
commit | 8c86ab257d45badfccc18158f38f833c3d49fe8c (patch) | |
tree | 1184eb96b9b768b3a8f568dfc792fb8ac2e4e73e /drivers/regulator | |
parent | 94421b05d3f494943078230871859c5d92ac4505 (diff) |
regulator: pfuze100: Use i2c_[set|get]_clientdata
Since this is a i2c driver, use i2c_[set|get]_clientdata instead of
dev_[set|get]_drvdata.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/pfuze100-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 2dadc3138ce9..471208782b03 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c | |||
@@ -360,7 +360,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client, | |||
360 | if (!pfuze_chip) | 360 | if (!pfuze_chip) |
361 | return -ENOMEM; | 361 | return -ENOMEM; |
362 | 362 | ||
363 | dev_set_drvdata(&client->dev, pfuze_chip); | 363 | i2c_set_clientdata(client, pfuze_chip); |
364 | 364 | ||
365 | memcpy(pfuze_chip->regulator_descs, pfuze100_regulators, | 365 | memcpy(pfuze_chip->regulator_descs, pfuze100_regulators, |
366 | sizeof(pfuze_chip->regulator_descs)); | 366 | sizeof(pfuze_chip->regulator_descs)); |
@@ -429,7 +429,7 @@ static int pfuze100_regulator_probe(struct i2c_client *client, | |||
429 | static int pfuze100_regulator_remove(struct i2c_client *client) | 429 | static int pfuze100_regulator_remove(struct i2c_client *client) |
430 | { | 430 | { |
431 | int i; | 431 | int i; |
432 | struct pfuze_chip *pfuze_chip = dev_get_drvdata(&client->dev); | 432 | struct pfuze_chip *pfuze_chip = i2c_get_clientdata(client); |
433 | 433 | ||
434 | for (i = 0; i < PFUZE100_MAX_REGULATOR; i++) | 434 | for (i = 0; i < PFUZE100_MAX_REGULATOR; i++) |
435 | regulator_unregister(pfuze_chip->regulators[i]); | 435 | regulator_unregister(pfuze_chip->regulators[i]); |