]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
backlight: ili9320: use spi_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 29 Apr 2013 23:17:56 +0000 (16:17 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 30 Apr 2013 01:28:18 +0000 (18:28 -0700)
Use the wrapper functions for getting and setting the driver data using
spi_device instead of using dev_{get|set}_drvdata with &spi->dev, so we
can directly pass a struct spi_device.

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>
drivers/video/backlight/ili9320.c

index 1235bf9defc42f70b0ef615acb12a36c405ac89e..c3a529966dd0f90808f81db841189f23dba8675e 100644 (file)
@@ -231,7 +231,7 @@ int ili9320_probe_spi(struct spi_device *spi,
        ili->power = FB_BLANK_POWERDOWN;
        ili->platdata = cfg;
 
-       dev_set_drvdata(&spi->dev, ili);
+       spi_set_drvdata(spi, ili);
 
        ili9320_setup_spi(ili, spi);