hwmon: (ucd9000) Add debugfs attributes to provide mfr_status
authorChristopher Bostic <cbostic@linux.vnet.ibm.com>
Fri, 16 Mar 2018 21:22:06 +0000 (16:22 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 17 Mar 2018 01:52:35 +0000 (18:52 -0700)
commit72816cb06e7153c22aed8776949f558b635aa2c0
treeb4d51800cfe7f87be785036f3e5450f06232ea38
parentca781fb7fd95ba90eda6936a27fc1e3202f99d6a
hwmon: (ucd9000) Add debugfs attributes to provide mfr_status

Expose the gpiN_fault fields of mfr_status as individual debugfs
attributes. This provides a way for users to be easily notified of gpi
faults. Also provide the whole mfr_status register in debugfs.

Signed-off-by: Christopher Bostic <cbostic@linux.vnet.ibm.com>
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Eddie James <eajames@linux.vnet.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/ucd9000.c