Skip to content

media: rockchip: Modernize PM_OPS

Diederik de Haas linux-arm-kernel linux-media linux-rockchip lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3media: rkvdec: Switch to modern PM_OPSdrivers/media/platform/rockchip/rkvdec/rkvdec.c+3 -61 reply
2/3media: rockchip: rga: Switch to modern PM_OPSdrivers/media/platform/rockchip/rga/rga.c+4 -51 reply
3/3media: rkisp1: Switch to modern PM_OPSdrivers/media/platform/rockchip/rkisp1/rkisp1-dev.c+5 -61 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchLaurent PinchartNicolas Dufresne
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] media: rockchip: Modernize PM_OPS

A bunch of new PM_OPS macros got introduced in commit 1a3c7bb08826 ("PM: core: Add new *_PM_OPS macros, deprecate old ones")

Straight up copied from that commit message:

These new macros are very similar to their SET_*_PM_OPS() equivalent. They however differ in the fact that the callbacks they set will always be seen as referenced by the compiler. This means that the callback functions don't need to be wrapped with a #ifdef CONFIG_PM guard, or tagged with __maybe_unused, to prevent the compiler from complaining about unused static symbols. The compiler will then simply evaluate at compile time whether or not these symbols are dead code.

So convert the rockchip media components which used the old macros to the new ones.

Diederik de Haas (3):
media: rkvdec: Switch to modern PM_OPS
media: rockchip: rga: Switch to modern PM_OPS
media: rkisp1: Switch to modern PM_OPS

 drivers/media/platform/rockchip/rga/rga.c           |  9 ++++-----
 drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c | 11 +++++------
 drivers/media/platform/rockchip/rkvdec/rkvdec.c     |  9 +++------
 3 files changed, 12 insertions(+), 17 deletions(-)
Signature · 1 line
2.55.0