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

hwmon: (pwm-fan) Store tach data separately



The data for the (optional) fan tachometer input is moved to a separate
structure which is only allocated if an input is actually configured.

After this change the pulse IRQ handler takes a pointer to the
tachometer data structure instead of the whole device context.

Signed-off-by: default avatarPaul Barker <pbarker@konsulko.com>
Link: https://lore.kernel.org/r/20201212195008.6036-2-pbarker@konsulko.com
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 8bfc731e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment