Skip to content
Commit b5fcb8a4 authored by Paul Barker's avatar Paul Barker Committed by Guenter Roeck
Browse files

hwmon: pwm-fan: Refactor pwm_fan_probe



Use platform_irq_count to determine the number of fan tachometer inputs
configured in the device tree. At this stage we support either 0 or 1
inputs.

Once we have this information we only need to read the
pulses-per-revolution value if a fan tachometer is actually configured
via an IRQ value.

Also add a debug print of the IRQ number and the pulses-per-revolution
value to aid in investigating issues.

Signed-off-by: default avatarPaul Barker <pbarker@konsulko.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201126174408.755-2-pbarker@konsulko.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 02c155cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment