]> git.baikalelectronics.ru Git - kernel.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)
commitf8cf268b12d0e9984482a27d5836d745860aff72
tree87672f2d1f5b90a48876c0b21e058e75a0fb5a6a
parentb215a282d0e8fc4fcd8121edc3eb3218f8819e31
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