thermal: Introduce devm_thermal_of_cooling_device_register
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | thermal: Introduce devm_thermal_of_cooling_device_registerdrivers/ include/ | +54 | 4 replies | |
| 2/6 | hwmon: (aspeed-pwm-tacho) Use devm_thermal_of_cooling_device_registerdrivers/ | +2 | 1 reply | |
| 3/6 | hwmon: (gpio-fan) Use devm_thermal_of_cooling_device_registerdrivers/ | +9 | 0 replies | |
| 4/6 | hwmon: (mlxreg-fan) Use devm_thermal_of_cooling_device_registerdrivers/ | +10 | 0 replies | |
| 5/6 | hwmon: (npcm750-pwm-fan) Use devm_thermal_of_cooling_device_registerdrivers/ | +2 | 0 replies | |
| 6/6 | hwmon: (pwm-fan) Use devm_thermal_of_cooling_device_registerdrivers/ | +29 | 1 reply |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | Patrick Venture |
|---|---|
| 1/6 | |
| 2/6 | R-b |
| 3/6 | |
| 4/6 | |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] thermal: Introduce devm_thermal_of_cooling_device_register
thermal_of_cooling_device_register() and thermal_cooling_device_register() are typically called from driver probe functions, and thermal_cooling_device_unregister() is called from remove functions. This makes both a perfect candidate for device managed functions.
Introduce devm_thermal_of_cooling_device_register(). This function can also be used to replace thermal_cooling_device_register() by passing a NULL pointer as device node. The new function requires both struct device * and struct device_node * as parameters since the struct device_node * parameter is not always identical to dev->of_node.
Don't introduce a device managed remove function since it is not needed at this point.
The patch series introduces the new function and then converts various hwmon drivers to use it.