From: Pei Xiao <xiaopei01@kylinos.cn>
Patch series: hwmon: (gpd-fan) cleanup and fixes
This series makes several improvements to the GPD fan driver:
1.Replace global driver data with per-device allocation
2.Initialize the EC before registering the hwmon device
3.Upgrade log level from warn to err for platform device creation failure
4.Fix a race condition between device removal and sysfs access
changes in v3:
1.All patches add v3 version tags
changes in v2:
1.Add a new patch for fix race condition between device removal and sysfs
access.
2.Platform_create_bundle pass a driver_data pointer
3.gpd_init_ec needed before hwmon registration as a separate patch
Pei Xiao (4):
hwmon: (gpd-fan): drop global driver data and use per-device
allocation
hwmon: (gpd-fan): Initialize EC before registering hwmon device
hwmon: (gpd-fan): upgrade log level from warn to err for platform
device creation failure
hwmon: (gpd-fan): fix race condition between device removal and sysfs
access
drivers/hwmon/gpd-fan.c | 226 ++++++++++++++++++++++------------------
1 file changed, 125 insertions(+), 101 deletions(-)
--
2.25.1