]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adxl34x - use spi_get_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 8 Apr 2013 03:52:16 +0000 (20:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 8 Apr 2013 04:02:29 +0000 (21:02 -0700)
commit76497c4ac159d829cf5ae9bee7a03becf253ac5e
treee1553854a3b545dc9c343a719f21616f8e35abdc
parent5d21759f78fb457803809df3fae50badf9877ddc
Input: adxl34x - use spi_get_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: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/misc/adxl34x-spi.c