diff options
| author | 2020-11-26 17:44:07 +0000 | |
|---|---|---|
| committer | 2020-12-02 17:42:24 -0800 | |
| commit | b5fcb8a4018dabf9cbcb9a83757bd74576c66174 (patch) | |
| tree | 48a5b02f4495bdba4162edb9a92336ce4df2acef /include/linux/mfd/git:/ssh:/git@git.zx2c4.com | |
| parent | hwmon: (abx500) Switch to using the new API kobj_to_dev() (diff) | |
| download | linux-dev-b5fcb8a4018dabf9cbcb9a83757bd74576c66174.tar.xz linux-dev-b5fcb8a4018dabf9cbcb9a83757bd74576c66174.zip | |
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: Paul Barker <pbarker@konsulko.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20201126174408.755-2-pbarker@konsulko.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include/linux/mfd/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
