]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (gpd-fan): drop global driver data and use per-device allocation
authorPei Xiao <xiaopei01@kylinos.cn>
Wed, 10 Jun 2026 01:49:09 +0000 (09:49 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 10 Jun 2026 13:13:12 +0000 (06:13 -0700)
commit03b4addf8282fa2b63f2d7448d1a9bce9be3f556
tree82e76d475f05566a96201b0fc641631191aa1104
parent479bfeba2eb62666cd4b981c8e721c61dcf36e7d
hwmon: (gpd-fan): drop global driver data and use per-device allocation

replace the global state gpd_driver_priv with per-device private data
(struct gpd_fan_data) allocated in probe. This allows the driver to
support multiple instances in the future and aligns with kernel best
practices.

No functional change intended.

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://lore.kernel.org/r/1cd3e13033fdd3d0f9b59322f7c86e350d113b92.1781055639.git.xiaopei01@kylinos.cn
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/gpd-fan.c