]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (occ) Prevent sysfs error attribute from returning error
authorEddie James <eajames@linux.ibm.com>
Tue, 16 Apr 2019 15:43:49 +0000 (15:43 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 22:13:54 +0000 (15:13 -0700)
commit1ca8cacf5aa83d4f7954df0e9253fd3809af2db2
tree202a077b2cda0e598b21191f3ddd5611be50fa3f
parent25e2b12b1b82b81a7fcca573449357031a17c2e9
hwmon: (occ) Prevent sysfs error attribute from returning error

The error sysfs attribute returns the stored error state of the OCC and
doesn't depend on the OCC poll response. Therefore, split the error
attribute into it's own function to avoid failing out of the function if
the poll response fails.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/sysfs.c