hwmon: Use i2c_smbus_{read,write}_word_swapped
commit90f4102ce59226954edbe960b2434d8b3da5f086
authorJean Delvare <khali@linux-fr.org>
Fri, 4 Nov 2011 11:00:47 +0000 (4 12:00 +0100)
committerJean Delvare <khali@endymion.delvare>
Fri, 4 Nov 2011 11:00:47 +0000 (4 12:00 +0100)
tree93fd275039932253b16ea125c1ba5eea2995b719
parent371f2e083b9b081adf68d04fba4978a27dc4e618
hwmon: Use i2c_smbus_{read,write}_word_swapped

Make use of the new i2c_smbus_{read,write}_word_swapped functions.
This makes the driver code more compact and readable. It also ensures
proper error handling.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Dirk Eibach <eibach@gdsys.de>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>
Cc: Guillaume Ligneul <guillaume.ligneul@gmail.com>
19 files changed:
drivers/hwmon/ad7414.c
drivers/hwmon/ad7418.c
drivers/hwmon/ads1015.c
drivers/hwmon/ads7828.c
drivers/hwmon/asb100.c
drivers/hwmon/ds1621.c
drivers/hwmon/ds620.c
drivers/hwmon/gl518sm.c
drivers/hwmon/gl520sm.c
drivers/hwmon/jc42.c
drivers/hwmon/lm73.c
drivers/hwmon/lm75.c
drivers/hwmon/lm77.c
drivers/hwmon/lm92.c
drivers/hwmon/max16065.c
drivers/hwmon/sht21.c
drivers/hwmon/smm665.c
drivers/hwmon/tmp102.c
drivers/hwmon/w83781d.c