Messages in this thread | | | From | Gwendal Grignou <> | Subject | [PATCH 0/3] platform/chrome: Use new PM_OPS macros | Date | Mon, 3 Jan 2022 22:22:10 -0800 |
| |
commit 296282fca791 ("PM: core: Add new *_PM_OPS macros, deprecate old ones") Add new macros to remove __maybe_unused and/or #ifdef CONFIG_PM_SLEEP.
Apply them to plaform/chrome, using .cocci script to ease the refactoring. Only one #ifdef remains, in cros_ec.c to expose core suspend/resume routine.
Gwendal Grignou (3): plaform/chrome: remove SET_SYSTEM_SLEEP_PM_OPS plaform/chrome: Remove SIMPLE_DEV_PM_OPS plaform/chrome: Remove SET_LATE_SYSTEM_SLEEP_PM_OPS
drivers/platform/chrome/chromeos_tbmc.c | 6 +++--- drivers/platform/chrome/cros_ec_debugfs.c | 8 ++++---- drivers/platform/chrome/cros_ec_i2c.c | 6 ++---- drivers/platform/chrome/cros_ec_ishtp.c | 8 ++++---- drivers/platform/chrome/cros_ec_lightbar.c | 8 ++++---- drivers/platform/chrome/cros_ec_lpc.c | 6 ++---- drivers/platform/chrome/cros_ec_rpmsg.c | 6 ++---- drivers/platform/chrome/cros_ec_sensorhub.c | 6 ++---- drivers/platform/chrome/cros_ec_spi.c | 6 ++---- drivers/platform/chrome/cros_ec_typec.c | 10 ++++------ drivers/platform/chrome/cros_usbpd_logger.c | 8 ++++---- 11 files changed, 33 insertions(+), 45 deletions(-)
-- 2.34.1.448.ga2b2bfdf31-goog
| |