]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (pwm-fan) Add RPM support via external interrupt
authorStefan Wahren <stefan.wahren@i2se.com>
Thu, 11 Apr 2019 13:30:11 +0000 (15:30 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 16 Apr 2019 00:19:53 +0000 (17:19 -0700)
commit5da14f3c6700b5c7f6596f16d7170997ce269e4f
treea1473c88414c9eb0be096b544fef678f7480f642
parent86781515ce2406d47f16b2e7f1f4294fe42eded2
hwmon: (pwm-fan) Add RPM support via external interrupt

This adds RPM support to the pwm-fan driver in order to use with
fancontrol/pwmconfig. This feature is intended for fans with a tachometer
output signal, which generate a defined number of pulses per revolution.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
[groeck: Drop unused 'devattr' variable]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c