diff options
| author | Pei Xiao <xiaopei01@kylinos.cn> | 2026-06-10 09:49:09 +0800 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-06-10 06:13:12 -0700 |
| commit | 03b4addf8282fa2b63f2d7448d1a9bce9be3f556 (patch) | |
| tree | 82e76d475f05566a96201b0fc641631191aa1104 /scripts | |
| parent | 479bfeba2eb62666cd4b981c8e721c61dcf36e7d (diff) | |
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>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
