]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: omap: switch to NOIRQ_SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS()
authorThomas Richard <thomas.richard@bootlin.com>
Thu, 13 Jun 2024 13:13:27 +0000 (15:13 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Mon, 8 Jul 2024 22:46:07 +0000 (00:46 +0200)
commit2cb21a62bacc53587095b2050e92ce3e7a3574d7
tree42d4ae327cee50e61d1f8385951c67cae10b5e36
parent69ab71bdd3006a98e13048bcb698004866225dc4
i2c: omap: switch to NOIRQ_SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS()

Replace SET_NOIRQ_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS() by
NOIRQ_SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS().
The usage of pm_ptr() and these more recent macros allows the compiler to
see and drop the dead code.
The unnecessary '__maybe_unused' annotations on PM functions can be
removed.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
drivers/i2c/busses/i2c-omap.c