]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ftsteutates) Fix clearing alarm sysfs entries
authorThilo Cestonaro <thilo.cestonaro@ts.fujitsu.com>
Thu, 3 Aug 2017 09:43:51 +0000 (11:43 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Aug 2017 15:24:01 +0000 (08:24 -0700)
commitbf4c48e69a557c212f18495252ef43ab8e5e7806
tree0cb7532b905da4666b530d40477328b719246f5e
parent1b97f15d622ae0aa1e9cf95d3fbb2c4720b23cb7
hwmon: (ftsteutates) Fix clearing alarm sysfs entries

sysfs store functions should return the number of bytes written.
Returning zero results in an endless loop.

Fixes: 7c912665ea89 ("hwmon: Add driver for FTS BMC chip "Teutates"")
Signed-off-by: Thilo Cestonaro <thilo.cestonaro@ts.fujitsu.com>
[groeck: Clean up documentation change and description]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/ftsteutates
drivers/hwmon/ftsteutates.c