diff options
Diffstat (limited to 'drivers/input/touchscreen/ad7879-i2c.c')
-rw-r--r-- | drivers/input/touchscreen/ad7879-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/ad7879-i2c.c b/drivers/input/touchscreen/ad7879-i2c.c index b746702a8551..0dac6712f42b 100644 --- a/drivers/input/touchscreen/ad7879-i2c.c +++ b/drivers/input/touchscreen/ad7879-i2c.c | |||
@@ -23,7 +23,7 @@ static int ad7879_i2c_read(struct device *dev, u8 reg) | |||
23 | { | 23 | { |
24 | struct i2c_client *client = to_i2c_client(dev); | 24 | struct i2c_client *client = to_i2c_client(dev); |
25 | 25 | ||
26 | return swab16(i2c_smbus_read_word_data(client, reg)); | 26 | return i2c_smbus_read_word_swapped(client, reg); |
27 | } | 27 | } |
28 | 28 | ||
29 | static int ad7879_i2c_multi_read(struct device *dev, | 29 | static int ad7879_i2c_multi_read(struct device *dev, |
@@ -44,7 +44,7 @@ static int ad7879_i2c_write(struct device *dev, u8 reg, u16 val) | |||
44 | { | 44 | { |
45 | struct i2c_client *client = to_i2c_client(dev); | 45 | struct i2c_client *client = to_i2c_client(dev); |
46 | 46 | ||
47 | return i2c_smbus_write_word_data(client, reg, swab16(val)); | 47 | return i2c_smbus_write_word_swapped(client, reg, val); |
48 | } | 48 | } |
49 | 49 | ||
50 | static const struct ad7879_bus_ops ad7879_i2c_bus_ops = { | 50 | static const struct ad7879_bus_ops ad7879_i2c_bus_ops = { |