summaryrefslogtreecommitdiff
path: root/drivers/hwmon/powr1220.c
diff options
context:
space:
mode:
authorPaul Barker <pbarker@konsulko.com>2020-11-26 20:44:07 +0300
committerGuenter Roeck <linux@roeck-us.net>2020-12-03 04:42:24 +0300
commitb5fcb8a4018dabf9cbcb9a83757bd74576c66174 (patch)
tree48a5b02f4495bdba4162edb9a92336ce4df2acef /drivers/hwmon/powr1220.c
parent02c155cb321643df9400a9af082902fcff222ad9 (diff)
downloadlinux-b5fcb8a4018dabf9cbcb9a83757bd74576c66174.tar.xz
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 'drivers/hwmon/powr1220.c')
0 files changed, 0 insertions, 0 deletions