commit | afe8419eb628430fe80452b9fd36cd0ebf411bd2 | [log] [tgz] |
---|---|---|
author | Eddie James <eajames@linux.ibm.com> | Tue Apr 16 15:43:49 2019 +0000 |
committer | Guenter Roeck <linux@roeck-us.net> | Tue Apr 16 15:13:54 2019 -0700 |
tree | 202a077b2cda0e598b21191f3ddd5611be50fa3f | |
parent | b5c46a53ee6b1f97104883d93847b2b2fdddc289 [diff] |
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>