Skip to content

Commit

Permalink
drivers/video/backlight/s6e63m0.c: remove unnecessary cast of void po…
Browse files Browse the repository at this point in the history
…inter

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>
  • Loading branch information
Jingoo Han authored and Linus Torvalds committed Dec 18, 2012
1 parent 3fd0043 commit 3c48d1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/backlight/s6e63m0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c48d1f

Please sign in to comment.