[PATCH 1/2] hwmon: (ucd9000) Add support for clearing logged faults via sysfs

2017-08-30 Thread Christopher Bostic
Create an attribute to allow clearing of logged faults. Signed-off-by: Christopher Bostic --- Documentation/hwmon/ucd9000 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/hwmon/ucd9000 b/Documentation/hwmon/ucd9000 index 262e713..de7f7f23 100644 --- a/Documentation/hwmon

[PATCH 2/2] hwmon: (ucd9000) Add sysfs attribute to clear logged faults

2017-08-30 Thread Christopher Bostic
Add ability to clear logged faults via sysfs. Signed-off-by: Christopher Bostic --- drivers/hwmon/pmbus/ucd9000.c | 45 ++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/pmbus/ucd9000.c b/drivers/hwmon/pmbus/ucd9000.c index

[PATCH 0/2] hwmon: (ucd9000) Add sysfs interface to clear logged faults

2017-08-30 Thread Christopher Bostic
This set covers changes required to allow user space to clear logged faults on ucd9000 type devices via sysfs. A write to this new file with any value will perform the clear operation. Patch 1: Document new sysfs file. Patch 2: Implementation of new file and clear process. Christopher Bostic