diff options
author | Armin Wolf <W_Armin@gmx.de> | 2022-04-26 23:31:52 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-05-20 10:57:05 -0700 |
commit | 4fc1a51c8572179abb767f56cbfc433e00e310c1 (patch) | |
tree | f392aa8d55f9afb745407ea63d7e3b0dd33f6bad /drivers/hwmon/w83627hf.c | |
parent | c851b715d38de0c262a63de16ad954ed39b47aca (diff) |
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/w83627hf.c')
0 files changed, 0 insertions, 0 deletions