hwmon: (pwm-fan) Store tach data separately
authorPaul Barker <pbarker@konsulko.com>
Sat, 12 Dec 2020 19:50:07 +0000 (19:50 +0000)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 28 Jan 2021 01:44:18 +0000 (17:44 -0800)
commit01695410d4529e38fea6159fa9f1260c598290b0
treec7629a3fd30f2724f47738cd3738aec4b29358f3
parent8bfc731e476793d94312044907708920077a3a3a
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: Paul Barker <pbarker@konsulko.com>
Link: https://lore.kernel.org/r/20201212195008.6036-2-pbarker@konsulko.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pwm-fan.c