Input: ad7879-i2c - use swapped variant of i2c_smbus_read_word_data
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 29 Nov 2011 19:23:27 +0000 (11:23 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Dec 2011 07:41:44 +0000 (23:41 -0800)
commit75255b29d473613e2a5737d6fb368dc4009c90a8
treec045c4dfa491dee839b864ac0d55b38166754a4f
parentcdcc96e261909eccf596c070116c8b906a42b328
Input: ad7879-i2c - use swapped variant of i2c_smbus_read_word_data

This variant was introduced in

i2c: boilerplate function for byte swapped smbus_write/read_word_data

This also has the side effect of ensuring any errors from the i2c
read and no longer mangled.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ad7879-i2c.c