Input: ads7846 - fix device usage within attribute show
authorAlexander Stein <alexanders83@web.de>
Sat, 12 Apr 2014 20:42:24 +0000 (13:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Apr 2014 20:55:59 +0000 (13:55 -0700)
commit2fdf4cd9a2afb113e566dfe6ee5df55ada8c0631
tree35e240671fb564bfdcbbb0109fdbc083d0170a17
parent06491e84f0f95dbe105b74fef32e7063e349f2d7
Input: ads7846 - fix device usage within attribute show

With commit e585c40ba (Input: ads7846 - convert to
hwmon_device_register_with_groups()) the device passed to the attribute's
show function isn't the spi device as before.
So fixup the passed device to ads7846_read12_ser.

Signed-off-by: Alexander Stein <alexanders83@web.de>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ads7846.c