diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-05-23 10:28:33 (GMT) |
---|---|---|
committer | Bryan Wu <cooloney@gmail.com> | 2013-06-20 23:21:33 (GMT) |
commit | 84196a2ffbac42f1649cc6e193be6016b233d312 (patch) | |
tree | 7f65cd4311e8db3c250f85a5527c4b8b73247f15 /drivers/leds/leds-88pm860x.c | |
parent | bfa855bad39b7a266c00efdd2dc5887bcd41bb70 (diff) | |
download | linux-84196a2ffbac42f1649cc6e193be6016b233d312.tar.xz |
leds: use platform_{get,set}_drvdata()
Use the wrapper functions for getting and setting the driver data using
platform_device instead of using dev_{get,set}_drvdata() with &pdev->dev,
so we can directly pass a struct platform_device.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Diffstat (limited to 'drivers/leds/leds-88pm860x.c')
-rw-r--r-- | drivers/leds/leds-88pm860x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-88pm860x.c b/drivers/leds/leds-88pm860x.c index f5b9ea3..232b3ce 100644 --- a/drivers/leds/leds-88pm860x.c +++ b/drivers/leds/leds-88pm860x.c @@ -204,7 +204,7 @@ static int pm860x_led_probe(struct platform_device *pdev) sprintf(data->name, "led1-blue"); break; } - dev_set_drvdata(&pdev->dev, data); + platform_set_drvdata(pdev, data); data->chip = chip; data->i2c = (chip->id == CHIP_PM8606) ? chip->client : chip->companion; data->port = pdev->id; |