pm: Introduce __pm to mark power management code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | pm: Introduce __pm to mark power management functions and datainclude/ | +2 | 0 replies | |
| 2/3 | hwmon: (tmp102) Convert to use __pm instead of #ifdef CONFIG_PMdrivers/ | +4 | 0 replies | |
| 3/3 | hwmon: (max6639) Convert to use __pm instead of #ifdef CONFIG_PM_SLEEPdrivers/ | +6 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] pm: Introduce __pm to mark power management code
The following patch series introduces a marker for power management functions and data. This this marker, #ifdef CONFIG_PM and #ifdef CONFIG_PM_SLEEP can be removed from most of the code. This ensures that the conditional code still compiles but is not included in the object file.
As a side effect, drivers declaring struct dev_pm_ops unconditionally get a bit smaller if CONFIG_PM_SLEEP is not configured.
The first patch in the series introduces the marker, the following two patches introduce the marker in two drivers to demonstrate its use.
The patch series depends on the "PM: Add pm_ops_ptr() macro" patch submitted by Jingoo Han.