Files
linux/drivers
Armin Wolf 87b93329fd hwmon: (dell-smm) Unify i8k_ioctl() and i8k_ioctl_unlocked()
The only purpose of i8k_ioctl() is to call i8k_ioctl_unlocked()
with i8k_mutex held. Judging from the hwmon code, this mutex
only needs to be held when setting the fan speed/mode, so
the operation of I8K_SET_FAN is guaranteed to be atomic.
Unify both functions and reduce the locking of i8k_mutex
to I8K_SET_FAN.

Tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Pali Rohár <pali@kernel.org>
Link: https://lore.kernel.org/r/20211211155422.16830-3-W_Armin@gmx.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
2021-12-26 15:02:06 -08:00
..
2021-11-26 19:45:31 +01:00
2021-12-09 10:49:56 -08:00
2021-12-13 13:18:48 +05:30
2021-12-21 16:22:58 +01:00
2021-11-26 22:54:47 +01:00
2021-10-26 19:12:01 +02:00
2021-10-18 09:29:27 +02:00
2021-11-30 11:41:49 -07:00
2021-12-08 14:53:15 -05:00