hwmon: (pmbus) Strengthen check for status register existence
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 9 Jul 2011 19:06:45 +0000 (12:06 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 29 Jul 2011 00:02:40 +0000 (17:02 -0700)
commitc6bfb767e431d3a236eab439d3660ff562598c84
tree069f5ce348f55a0eea1e58c224a51760e323a135
parent9c1ed8941d30fd6252e84a9941e6507e497d242b
hwmon: (pmbus) Strengthen check for status register existence

With virtual register page support, it is now possible that the status register
on virtual pages does not exist or is itself virtual. To take this into account
when creating alarm attributes, generate those attributes only if the status
register on the respective page is known to exist.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/pmbus_core.c