]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: tdo24m: use spi_get_drvdata and spi_set_drvdata
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:15:22 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:12 +0000 (16:53 +1100)
commit6236cbc41af15de91b38a55a7eca024c06533974
tree6e069c1eeb2bf624ef0d3f52d8d484ff98355798
parentf6f233dd9df4f7cc0d6945f866422806266dba9f
backlight: tdo24m: use spi_get_drvdata and spi_set_drvdata

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