]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (tmp401) use smb word operations instead of 2 smb byte operations
authorJeroen De Wachter <jeroen.de_wachter.ext@nokia.com>
Mon, 9 Jan 2017 17:55:00 +0000 (18:55 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 10 Jan 2017 17:01:32 +0000 (09:01 -0800)
commit24333ac26d01aab4cee8e1c137c34b97ab294b19
tree31350598086eedf71f8ce6f036fee3b2b66df9b5
parent87cdfa9d60f4f40e6d71b04b10b36d9df3c89282
hwmon: (tmp401) use smb word operations instead of 2 smb byte operations

tmp401 separately read/wrote high and low bytes of temperature values while
the hardware supports reading/writing those values in one operation. Driver
has been modified to use word operations where possible.

Tested with a tmp432 sensor on a mips64 platform.

Signed-off-by: Jeroen De Wachter <jeroen.de_wachter.ext@nokia.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp401.c