[PATCH v3 0/2] Fix RPM calculation in pwm-fan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix inaccuracy and inefficiency when calculating fan RPM in the pwm-fan
driver.

These changes can also be pulled from:

  https://gitlab.com/pbarker.dev/staging/linux.git
  tag: for-hwmon/pwm-fan-fix-rpm-v3_2020-11-10

Changes from v2:

  * Handle the case where delta=0 to avoid potential divide-by-zero
    exceptions.

  * Store a device pointer in pwm_fan_ctx so we can print an error
    message.

Paul Barker (2):
  hwmon: pwm-fan: Store device pointer in pwm_fan_ctx
  hwmon: pwm-fan: Fix RPM calculation

 drivers/hwmon/pwm-fan.c | 19 +++++++++++++------
 1 file changed, 13 insertions(+), 6 deletions(-)


base-commit: f8394f232b1eab649ce2df5c5f15b0e528c92091
-- 
2.29.2




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux