]> git.karo-electronics.de Git - karo-tx-linux.git/commit
backlight: ld9040: use spi_get_drvdata and spi_set_drvdata
authorJingoo Han <jg1.han@samsung.com>
Wed, 20 Feb 2013 02:15:21 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:53:12 +0000 (16:53 +1100)
commit6231f7b95bc55a51b0745f0f969b67910af5a061
tree2c50b20eb0a51f5b7b690b1831f1decce89ab6fa
parent3cdd7cb7406c607f40b077c894681449e4bc89be
backlight: ld9040: 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/ld9040.c