summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-09-11 08:22:14 -0700
committerGuenter Roeck <linux@roeck-us.net>2012-09-12 06:42:11 -0700
commit080b98e9ab30734bda2f1b8b33cd55a4c4ef406a (patch)
tree9364a6d861f480ff494040402f8e196ae115c23f /arch/arm
parent73d7c119255615a26070f9d6cdb722a166a29015 (diff)
downloadop-kernel-dev-080b98e9ab30734bda2f1b8b33cd55a4c4ef406a.zip
op-kernel-dev-080b98e9ab30734bda2f1b8b33cd55a4c4ef406a.tar.gz
hwmon: (ina2xx) Fix word size register read and write operations
The driver uses be16_to_cpu and cpu_to_be16 to convert data in SMBus word operations from chip to host byte order. However, the data passed from and to the SMBus word API functions is in host byte order, not in chip byte order. Conversion should therefore use swab16 instead of be16 to change the byte order. Replace driver internal word conversion functions with SMBus API functions to solve the problem. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Cc: stable@vger.kernel.org # 3.5+ Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud