]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (occ) Fix extended status bits
authorLei YU <mine260309@gmail.com>
Mon, 15 Apr 2019 10:37:20 +0000 (18:37 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:23 +0000 (17:19 -0700)
commit69a805f83a7458a9b22052ea3725826239137392
tree77ed2fac05f5148fe427b8d9f70e4336f1c19513
parentf9126884e33da50ac38f2ce0c1da35f50ca34c24
hwmon: (occ) Fix extended status bits

The occ's extended status is checked and shown as sysfs attributes. But
the code was incorrectly checking the "status" bits.
Fix it by checking the "ext_status" bits.

Cc: stable@vger.kernel.org
Fixes: fb4966a7af09 ("hwmon (occ): Add sysfs attributes for additional OCC data")
Signed-off-by: Lei YU <mine260309@gmail.com>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/sysfs.c