diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-11-13 00:09:04 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 04:09:16 +0100 |
commit | c512794cada491e008eeca822af7e4ad5db72a56 (patch) | |
tree | 08b65bb08c7387e45b6bc0d2c4b849ad6b921df5 /drivers/video/backlight/gpio_backlight.c | |
parent | backlight: lp8788: staticize 'default_bl_config' (diff) | |
download | linux-c512794cada491e008eeca822af7e4ad5db72a56.tar.xz linux-c512794cada491e008eeca822af7e4ad5db72a56.zip |
backlight: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly. This is a cosmetic change to
make the code simpler and enhance the readability.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/gpio_backlight.c')
-rw-r--r-- | drivers/video/backlight/gpio_backlight.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/video/backlight/gpio_backlight.c b/drivers/video/backlight/gpio_backlight.c index 5fa217f9f445..118da0c6386f 100644 --- a/drivers/video/backlight/gpio_backlight.c +++ b/drivers/video/backlight/gpio_backlight.c @@ -62,7 +62,8 @@ static const struct backlight_ops gpio_backlight_ops = { static int gpio_backlight_probe(struct platform_device *pdev) { - struct gpio_backlight_platform_data *pdata = pdev->dev.platform_data; + struct gpio_backlight_platform_data *pdata = + dev_get_platdata(&pdev->dev); struct backlight_properties props; struct backlight_device *bl; struct gpio_backlight *gbl; |