[PATCH 0/1] i2c: amd-mp2-pci: Simplify PM code using DEFINE_RUNTIME_DEV_PM_OPS

Artem Shimko posted 1 patch 2 days, 15 hours ago
There is a newer version of this series
drivers/i2c/busses/i2c-amd-mp2-pci.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
[PATCH 0/1] i2c: amd-mp2-pci: Simplify PM code using DEFINE_RUNTIME_DEV_PM_OPS
Posted by Artem Shimko 2 days, 15 hours ago
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