[PATCH 0/1] drivers: dma: change pm registration for dw-axi-dmac-platform's suspend

Artem Shimko posted 1 patch 1 month, 1 week ago
.../dma/dw-axi-dmac/dw-axi-dmac-platform.c    | 31 ++++++-------------
1 file changed, 9 insertions(+), 22 deletions(-)
[PATCH 0/1] drivers: dma: change pm registration for dw-axi-dmac-platform's suspend
Posted by Artem Shimko 1 month, 1 week ago
From: Artem Shimko <artyom.shimko@gmail.com>

The SET_RUNTIME_PM_OPS macro has been deprecated in favor of
DEFINE_RUNTIME_DEV_PM_OPS which provides equivalent functionality
while also supporting system suspend mode.

This change modernizes the power management implementation by:
1. Replacing SET_RUNTIME_PM_OPS with DEFINE_RUNTIME_DEV_PM_OPS
2. Removing wrapper runtime suspend/resume functions
3. Adding __maybe_unused attribute to PM functions
4. Converting direct chip access to device-based access in PM functions
5. Using pm_ptr() for PM ops pointer registration

The refactoring maintains all existing functionality while improving
code maintainability and following current kernel best practices.

Artem Shimko (1):
  drivers: dma: change pm registration for dw-axi-dmac-platform's
    suspend

 .../dma/dw-axi-dmac/dw-axi-dmac-platform.c    | 31 ++++++-------------
 1 file changed, 9 insertions(+), 22 deletions(-)

-- 
2.43.0