summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/platform_lcd.c
diff options
context:
space:
mode:
authorJingoo Han2013-11-13 00:09:04 +0100
committerLinus Torvalds2013-11-13 04:09:16 +0100
commitc512794cada491e008eeca822af7e4ad5db72a56 (patch)
tree08b65bb08c7387e45b6bc0d2c4b849ad6b921df5 /drivers/video/backlight/platform_lcd.c
parentbacklight: lp8788: staticize 'default_bl_config' (diff)
downloadkernel-qcow2-linux-c512794cada491e008eeca822af7e4ad5db72a56.tar.gz
kernel-qcow2-linux-c512794cada491e008eeca822af7e4ad5db72a56.tar.xz
kernel-qcow2-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/platform_lcd.c')
-rw-r--r--drivers/video/backlight/platform_lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/platform_lcd.c b/drivers/video/backlight/platform_lcd.c
index 056836706708..cc0f0675366e 100644
--- a/drivers/video/backlight/platform_lcd.c
+++ b/drivers/video/backlight/platform_lcd.c
@@ -80,7 +80,7 @@ static int platform_lcd_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
int err;
- pdata = pdev->dev.platform_data;
+ pdata = dev_get_platdata(&pdev->dev);
if (!pdata) {
dev_err(dev, "no platform data supplied\n");
return -EINVAL;