backlight: tdo24m: use spi_get_drvdata and spi_set_drvdata
authorJingoo Han <[email protected]>
Fri, 22 Feb 2013 00:43:37 +0000 (16:43 -0800)
committerLinus Torvalds <[email protected]>
Fri, 22 Feb 2013 01:22:23 +0000 (17:22 -0800)
commit719d5b2bbbd980d06b8bd962cc2b9f0789b77670
treed0a2cc540b8d6bce45c72c6ae9b3a677f0d41686
parent91c665b035a34bcaa0a40618c8a38666f40a0b3c
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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/video/backlight/tdo24m.c