diff options
author | Alexander Stein <alexander.stein@ew.tq-group.com> | 2022-09-14 18:31:36 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2022-09-26 00:22:11 +0300 |
commit | 9db6e7f500541b797acc207c790024f6179e2e6c (patch) | |
tree | 910bdab3f3451819116b169155fb805176949c1b /Documentation | |
parent | 9bf3aa60808803d56cb34bdff336e85c87c8026d (diff) | |
download | linux-9db6e7f500541b797acc207c790024f6179e2e6c.tar.xz |
hwmon: (pwm-fan) split __set_pwm into locked/unlocked functions
Regular calls to set_pwm don't hold the mutex, but the upcoming
update_enable support needs to call set_pwm with the mutex being held.
So provide the previous behavior in set_pwm (handling the lock), while
adding __set_pwm which assumes the lock being held.
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220914153137.613982-5-alexander.stein@ew.tq-group.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions