[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250906001217.3792723-1-artyom.shimko@gmail.com>
Date: Sat, 6 Sep 2025 03:12:07 +0300
From: Artem Shimko <artyom.shimko@...il.com>
To:
Cc: Artem Shimko <artyom.shimko@...il.com>,
Elie Morisse <syniurge@...il.com>,
Shyam Sundar S K <shyam-sundar.s-k@....com>,
Andi Shyti <andi.shyti@...nel.org>,
linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH 0/1] i2c: amd-mp2-pci: Simplify PM code using DEFINE_RUNTIME_DEV_PM_OPS
Hello maintainers and reviewers,
This patch series cleans up the power management code in the AMD MP2 PCI
I2C driver by modernizing the PM infrastructure.
The main changes include:
- Replacing UNIVERSAL_DEV_PM_OPS with DEFINE_RUNTIME_DEV_PM_OPS()
- Removing redundant CONFIG_PM preprocessor guards
- Using pm_sleep_ptr() for better code elimination
These changes simplify the codebase while maintaining full functionality.
The DEFINE_RUNTIME_DEV_PM_OPS macro automatically handles the necessary
config dependencies, making the manual #ifdef guards unnecessary.
The patch maintains backward compatibility.
Thank you for your consideration.
Best regards,
Artem Shimko
Artem Shimko (1):
i2c: amd-mp2-pci: Simplify PM code using DEFINE_RUNTIME_DEV_PM_OPS
drivers/i2c/busses/i2c-amd-mp2-pci.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
--
2.43.0
Powered by blists - more mailing lists