]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: stm32: dcmipp: bytecap: remove useless cmier variable
authorAlain Volmat <alain.volmat@foss.st.com>
Fri, 19 Dec 2025 14:30:40 +0000 (15:30 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Fri, 16 Jan 2026 13:08:52 +0000 (14:08 +0100)
commit8e3c7238481bb36485935151ce4ee0dc4cb72dca
tree43b64f65bd630eed41f464bec68f73d024d9e650
parent8a71f1f8d91fb10d306857c0f198a940c1d22e06
media: stm32: dcmipp: bytecap: remove useless cmier variable

The struct dcmipp_bytecap_device embeds a cmier variable which is
actually only set once and then used in several places for interrupt
mask or interrupt enable/disable. Use the DCMIPP_CMIER_P0ALL
bitfield macro directly instead of using it through the cmier
variable.

There is also no need to mask again vcap->cmsr2 against enabled
interrupts bit since this has already been done when storing the
interrupt status into the cmsr2 variable.

Signed-off-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/st/stm32/stm32-dcmipp/dcmipp-bytecap.c