diff options
Diffstat (limited to 'drivers/misc/bh1770glc.c')
-rw-r--r-- | drivers/misc/bh1770glc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/bh1770glc.c b/drivers/misc/bh1770glc.c index 753d7ecdadaa..845466e45b95 100644 --- a/drivers/misc/bh1770glc.c +++ b/drivers/misc/bh1770glc.c | |||
@@ -1323,7 +1323,7 @@ static int bh1770_remove(struct i2c_client *client) | |||
1323 | #ifdef CONFIG_PM_SLEEP | 1323 | #ifdef CONFIG_PM_SLEEP |
1324 | static int bh1770_suspend(struct device *dev) | 1324 | static int bh1770_suspend(struct device *dev) |
1325 | { | 1325 | { |
1326 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 1326 | struct i2c_client *client = to_i2c_client(dev); |
1327 | struct bh1770_chip *chip = i2c_get_clientdata(client); | 1327 | struct bh1770_chip *chip = i2c_get_clientdata(client); |
1328 | 1328 | ||
1329 | bh1770_chip_off(chip); | 1329 | bh1770_chip_off(chip); |
@@ -1333,7 +1333,7 @@ static int bh1770_suspend(struct device *dev) | |||
1333 | 1333 | ||
1334 | static int bh1770_resume(struct device *dev) | 1334 | static int bh1770_resume(struct device *dev) |
1335 | { | 1335 | { |
1336 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 1336 | struct i2c_client *client = to_i2c_client(dev); |
1337 | struct bh1770_chip *chip = i2c_get_clientdata(client); | 1337 | struct bh1770_chip *chip = i2c_get_clientdata(client); |
1338 | int ret = 0; | 1338 | int ret = 0; |
1339 | 1339 | ||
@@ -1361,7 +1361,7 @@ static int bh1770_resume(struct device *dev) | |||
1361 | #ifdef CONFIG_PM | 1361 | #ifdef CONFIG_PM |
1362 | static int bh1770_runtime_suspend(struct device *dev) | 1362 | static int bh1770_runtime_suspend(struct device *dev) |
1363 | { | 1363 | { |
1364 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 1364 | struct i2c_client *client = to_i2c_client(dev); |
1365 | struct bh1770_chip *chip = i2c_get_clientdata(client); | 1365 | struct bh1770_chip *chip = i2c_get_clientdata(client); |
1366 | 1366 | ||
1367 | bh1770_chip_off(chip); | 1367 | bh1770_chip_off(chip); |
@@ -1371,7 +1371,7 @@ static int bh1770_runtime_suspend(struct device *dev) | |||
1371 | 1371 | ||
1372 | static int bh1770_runtime_resume(struct device *dev) | 1372 | static int bh1770_runtime_resume(struct device *dev) |
1373 | { | 1373 | { |
1374 | struct i2c_client *client = container_of(dev, struct i2c_client, dev); | 1374 | struct i2c_client *client = to_i2c_client(dev); |
1375 | struct bh1770_chip *chip = i2c_get_clientdata(client); | 1375 | struct bh1770_chip *chip = i2c_get_clientdata(client); |
1376 | 1376 | ||
1377 | bh1770_chip_on(chip); | 1377 | bh1770_chip_on(chip); |