]> Git Repo - linux.git/commit
i2c: imx: Switch to RUNTIME_PM_OPS()
authorFabio Estevam <[email protected]>
Wed, 7 Aug 2024 18:14:56 +0000 (15:14 -0300)
committerAndi Shyti <[email protected]>
Mon, 9 Sep 2024 22:33:55 +0000 (00:33 +0200)
commit2d30c638f98408c0d2ad5a8c3b2421328aa30213
treef6ebfb9dac58b1d8db58834d26ade1ec951493b5
parentab5bd055e4dbb849d5d77c9a6d908e6f3bed58ed
i2c: imx: Switch to RUNTIME_PM_OPS()

Replace SET_RUNTIME_PM_OPS() with its modern RUNTIME_PM_OPS()
alternative.

The combined usage of pm_ptr() and RUNTIME_PM_OPS() allows the
compiler to evaluate if the runtime suspend/resume() functions
are used at build time or are simply dead code.

This allows removing the __maybe_unused notation from the runtime
suspend/resume() functions.

Signed-off-by: Fabio Estevam <[email protected]>
Acked-by: Oleksij Rempel <[email protected]>
Signed-off-by: Andi Shyti <[email protected]>
drivers/i2c/busses/i2c-imx.c
This page took 0.050676 seconds and 4 git commands to generate.