]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (occ) Fix P10 VRM temp sensors
authorEddie James <eajames@linux.ibm.com>
Wed, 29 Sep 2021 15:36:04 +0000 (10:36 -0500)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 2 Oct 2021 11:35:09 +0000 (04:35 -0700)
commitaea9f5ba9ce66ead5bf84c7b94e7fbfe12a809e1
tree11b142738692db728f31948efd70121152142319
parent905842db21111bd36666b73e07688a898336e6a8
hwmon: (occ) Fix P10 VRM temp sensors

The P10 (temp sensor version 0x10) doesn't do the same VRM status
reporting that was used on P9. It just reports the temperature, so
drop the check for VRM fru type in the sysfs show function, and don't
set the name to "alarm".

Fixes: 3552ee9fcf ("hwmon: (occ) Add new temperature sensor type")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Link: https://lore.kernel.org/r/20210929153604.14968-1-eajames@linux.ibm.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/occ/common.c