hwmon: (pmbus): Add generic alarm bit for iin and pin
authorEdward A. James <eajames@us.ibm.com>
Thu, 10 Aug 2017 21:57:49 +0000 (16:57 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Aug 2017 15:24:38 +0000 (08:24 -0700)
commitc159be9e902a59a117e67d466c872ecc46240ba5
treedf4934e6c3f2c7da0396f391cdefb642f9ca172e
parentcbcdec6202c934bd72fca4fe9db255d84f907dbe
hwmon: (pmbus): Add generic alarm bit for iin and pin

Add PB_STATUS_INPUT as the generic alarm bit for iin and pin. We also
need to redo the status register checking before setting up the boolean
attribute, since it won't necessarily check STATUS_WORD if the device
doesn't support it, which we need for this bit.

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