summaryrefslogtreecommitdiffstats
path: root/drivers/video/backlight/ld9040.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-11-12 15:09:04 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-11-13 12:09:16 +0900
commitc512794cada491e008eeca822af7e4ad5db72a56 (patch)
tree08b65bb08c7387e45b6bc0d2c4b849ad6b921df5 /drivers/video/backlight/ld9040.c
parent1f299997b460d08356006945345a8962f7ecd719 (diff)
downloadblackbird-op-linux-c512794cada491e008eeca822af7e4ad5db72a56.tar.gz
blackbird-op-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/ld9040.c')
-rw-r--r--drivers/video/backlight/ld9040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/backlight/ld9040.c b/drivers/video/backlight/ld9040.c
index 1e0a3093ce50..26d5139b0696 100644
--- a/drivers/video/backlight/ld9040.c
+++ b/drivers/video/backlight/ld9040.c
@@ -702,7 +702,7 @@ static int ld9040_probe(struct spi_device *spi)
lcd->spi = spi;
lcd->dev = &spi->dev;
- lcd->lcd_pd = spi->dev.platform_data;
+ lcd->lcd_pd = dev_get_platdata(&spi->dev);
if (!lcd->lcd_pd) {
dev_err(&spi->dev, "platform data is NULL.\n");
return -EINVAL;
OpenPOWER on IntegriCloud