drivers/video/backlight/s6e63m0.c: remove unnecessary cast of void pointer
authorJingoo Han <jg1.han@samsung.com>
Tue, 18 Dec 2012 00:00:55 +0000 (16:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 18 Dec 2012 01:15:16 +0000 (17:15 -0800)
Remove unnecessary cast of void pointer for platform data in probe
function.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/video/backlight/s6e63m0.c

index 484e10d..3e1c113 100644 (file)
@@ -757,7 +757,7 @@ static int s6e63m0_probe(struct spi_device *spi)
        lcd->spi = spi;
        lcd->dev = &spi->dev;
 
-       lcd->lcd_pd = (struct lcd_platform_data *)spi->dev.platform_data;
+       lcd->lcd_pd = spi->dev.platform_data;
        if (!lcd->lcd_pd) {
                dev_err(&spi->dev, "platform data is NULL.\n");
                return -EFAULT;