aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/corsair-psu.c
diff options
context:
space:
mode:
authorArmin Wolf <W_Armin@gmx.de>2022-04-26 23:31:52 +0200
committerGuenter Roeck <linux@roeck-us.net>2022-05-20 10:57:05 -0700
commit4fc1a51c8572179abb767f56cbfc433e00e310c1 (patch)
treef392aa8d55f9afb745407ea63d7e3b0dd33f6bad /drivers/hwmon/corsair-psu.c
parenthwmon: (lm75) Add Atmel AT30TS74 support (diff)
downloadlinux-dev-4fc1a51c8572179abb767f56cbfc433e00e310c1.tar.xz
linux-dev-4fc1a51c8572179abb767f56cbfc433e00e310c1.zip
hwmon: (dell-smm) Avoid unnecessary SMM calls during init
When the driver tries to detect the fan multiplier during module initialisation, it issues one SMM call for each fan. Those SMM calls are however redundant and also try to query fans which may not be present. Fix that by detecting the fan multiplier during hwmon initialisation when no extra SMM calls are needed. Also dont assume the last nominal speed entry to be the biggest and instead check all entries. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://lore.kernel.org/r/20220426213154.724708-2-W_Armin@gmx.de Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/corsair-psu.c')
0 files changed, 0 insertions, 0 deletions