commit | cbcdec6202c934bd72fca4fe9db255d84f907dbe | [log] [tgz] |
---|---|---|
author | Edward A. James <eajames@us.ibm.com> | Thu Aug 10 16:57:48 2017 -0500 |
committer | Guenter Roeck <linux@roeck-us.net> | Sun Aug 13 08:24:38 2017 -0700 |
tree | 87672f2d1f5b90a48876c0b21e058e75a0fb5a6a | |
parent | a66a6eb9db10bd630bacf31e33505302c8e8303c [diff] |
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>