]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 15 Jul 2011 15:10:19 +0000 (08:10 -0700)
commit2c0275e8d96b74d078a690ec3f05bcbaa4740623
tree28c58519798d690b96b098ff2546f5c5510159c4
parent990d124f51d90fc62df252b01a4a1b0d53b9cb45
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>
drivers/hwmon/pmbus/pmbus_core.c