linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] i2c: amd-mp2-pci: Simplify PM code using DEFINE_RUNTIME_DEV_PM_OPS
@ 2025-09-06  0:12 Artem Shimko
  2025-09-06  0:12 ` [PATCH 1/1] " Artem Shimko
  0 siblings, 1 reply; 5+ messages in thread
From: Artem Shimko @ 2025-09-06  0:12 UTC (permalink / raw)
  Cc: Artem Shimko, Elie Morisse, Shyam Sundar S K, Andi Shyti,
	linux-i2c, linux-kernel

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-09-08 12:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-06  0:12 [PATCH 0/1] i2c: amd-mp2-pci: Simplify PM code using DEFINE_RUNTIME_DEV_PM_OPS Artem Shimko
2025-09-06  0:12 ` [PATCH 1/1] " Artem Shimko
2025-09-06 21:26   ` kernel test robot
     [not found]     ` <20250908115942.752356-1-artyom.shimko@gmail.com>
2025-09-08 11:59       ` [PATCH v2 0/1] " Artem Shimko
2025-09-08 12:11     ` [PATCH v2 1/1] " Artem Shimko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).