]> asedeno.scripts.mit.edu Git - linux.git/commit
hwmon: (pmbus): Access word data for STATUS_WORD
authorEdward A. James <eajames@us.ibm.com>
Thu, 10 Aug 2017 21:57:48 +0000 (16:57 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Aug 2017 15:24:38 +0000 (08:24 -0700)
commitcbcdec6202c934bd72fca4fe9db255d84f907dbe
tree87672f2d1f5b90a48876c0b21e058e75a0fb5a6a
parenta66a6eb9db10bd630bacf31e33505302c8e8303c
hwmon: (pmbus): Access word data for STATUS_WORD

Pmbus always reads byte data from the status register, even if
configured to use STATUS_WORD. Use a function pointer to read the
correct amount of data from the registers.
Also switch to try STATUS_WORD first before STATUS_BYTE on init.

Signed-off-by: Edward A. James <eajames@us.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c