[PATCH 2/4] drivers/hwmon/pmbus: Access word data for STATUS_WORD

2017-08-09 Thread Eddie James
From: "Edward A. James" 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:

[PATCH 2/4] drivers/hwmon/pmbus: Access word data for STATUS_WORD

2017-08-09 Thread Eddie James
From: "Edward A. James" 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