Re: [RFC, 1/3] drivers/hwmon/pmbus: Access word data for STATUS_WORD and use it by default

2017-08-08 Thread Guenter Roeck
On Mon, Aug 07, 2017 at 10:25:46PM -0500, eaja...@linux.vnet.ibm.com wrote: > From: "Edward A. James" > > Pmbus core always reads byte data from the status register, even if > configured to use STATUS_WORD. Use a function pointer so we always do > either byte or word access depending on which reg

[RFC 1/3] drivers/hwmon/pmbus: Access word data for STATUS_WORD and use it by default

2017-08-07 Thread Eddie James
From: "Edward A. James" Pmbus core always reads byte data from the status register, even if configured to use STATUS_WORD. Use a function pointer so we always do either byte or word access depending on which register we're trying to access. Also switch to use STATUS_WORD by default. Signed-off-b