hwmon: (amc6821) Move reading fan data from OF to a function
authorJoão Paulo Gonçalves <joao.goncalves@toradex.com>
Fri, 13 Jun 2025 13:42:39 +0000 (10:42 -0300)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 20 Jul 2025 23:38:34 +0000 (16:38 -0700)
commitb0078b2c9f54eac77e2562d83e70ace41f8397cc
tree6b919f2f6a3949b2d7e3ea083a6e738586fef12b
parentf2a32ed8691185206e080a603486730d65ffecb7
hwmon: (amc6821) Move reading fan data from OF to a function

Move fan property reading from OF to a separate function. This keeps OF
data handling separate from the code logic and makes it easier to add
features like cooling device support that use the same fan node.

Signed-off-by: João Paulo Gonçalves <joao.goncalves@toradex.com>
Link: https://lore.kernel.org/r/20250613-b4-amc6821-cooling-device-support-v4-2-a8fc063c55de@toradex.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/amc6821.c