hwmon: Move to new PM macros reducing driver complexity
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 3 repliesIn review
Patches in v1 No applies recorded yet
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/18] hwmon: Move to new PM macros reducing driver complexity
From: Jonathan Cameron <[email protected]>
Recently a solution was added to avoiding the need to either guard pm functions with #ifdef magic, or mark the __maybe_unused.
https://lore.kernel.org/all/[email protected]/
This series switches hwmon over to the new macros that are intended to replace SIMPLE_DEV_PM_OPS and similar.
There are a few drivers in hwmon that might be able fine using DEFINE_SIMPLE_PM_OPS() but currently do not define as many of the callbacks as that macro does. As such I haven't touched them in this set.
This is part of general effort to get rid of examples of the older macros that might get copied in new drivers.
Jonathan Cameron (18):
hwmon: (abitguru) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (abitguru3) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (acpi_power_meter) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (adt7x10) Switch to EXPORT_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (gpio-fan) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (it87) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
hwmon: (lm90) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()
hwmon: (ltc2947) Switch to EXPORT_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (max31722) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (max31730) witch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (max6639) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (nct6775) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (pwm-fan) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (tmp102) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (tmp103) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (tmp108) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr()
hwmon: (w83627ehf) Switch to DEFINE_SIMPLE_DEV_PM_OPS() and
pm_sleep_ptr() hwmon: (ina3221) Use DEFINE_RUNTIME_DEV_PM_OPS() and pm_ptr()
drivers/hwmon/abituguru.c | 9 ++------- drivers/hwmon/abituguru3.c | 9 ++------- drivers/hwmon/acpi_power_meter.c | 9 +++------ drivers/hwmon/adt7310.c | 2 +- drivers/hwmon/adt7410.c | 2 +- drivers/hwmon/adt7x10.c | 7 +------ drivers/hwmon/adt7x10.h | 5 ----- drivers/hwmon/gpio-fan.c | 9 ++------- drivers/hwmon/ina3221.c | 13 +++++-------- drivers/hwmon/it87.c | 8 ++++---- drivers/hwmon/lm90.c | 8 ++++---- drivers/hwmon/ltc2947-core.c | 7 +++---- drivers/hwmon/ltc2947-i2c.c | 2 +- drivers/hwmon/ltc2947-spi.c | 2 +- drivers/hwmon/max31722.c | 8 ++++---- drivers/hwmon/max31730.c | 8 ++++---- drivers/hwmon/max6639.c | 6 ++---- drivers/hwmon/nct6775-platform.c | 8 ++++---- drivers/hwmon/pwm-fan.c | 6 ++---- drivers/hwmon/tmp102.c | 6 ++---- drivers/hwmon/tmp103.c | 8 ++++---- drivers/hwmon/tmp108.c | 8 ++++---- drivers/hwmon/w83627ehf.c | 8 ++++---- 23 files changed, 60 insertions(+), 98 deletions(-)
Signature · 1 line
2.37.2