]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: stm32: dcmi: Switch from __maybe_unused to pm_ptr()
authorAlain Volmat <alain.volmat@foss.st.com>
Tue, 6 Jan 2026 11:34:29 +0000 (12:34 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:32 +0000 (01:05 +0100)
commit9ab2bd7760a9edc23dfef71bb94092359ce94024
tree2e394d59d157528f3a2838c9f06458461f03fb6a
parent0001c706ee98738613cc8f6dcd139766230a9e01
media: stm32: dcmi: Switch from __maybe_unused to pm_ptr()

Letting the compiler remove these functions when the kernel is built
without CONFIG_PM_SLEEP support is simpler and less heavier for builds
than the use of __maybe_unused attributes.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/st/stm32/stm32-dcmi.c