]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging/intel-ipu3: Constify static struct v4l2_subdev_internal_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Tue, 5 Oct 2021 21:45:01 +0000 (23:45 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 8 Oct 2021 11:25:42 +0000 (13:25 +0200)
commit8219b6b1da5d0dff1d0c381afd2f4141d6c87db5
tree3020530c7b7e81663e68600687e86f963a4fa875
parentc23f9bee795b27344600bc47225ebf643d23f863
media: staging/intel-ipu3: Constify static struct v4l2_subdev_internal_ops

The only usage of imgu_subdev_internal_ops is to assign its address to
the internal_ops field in the v4l2_subdev struct, which is a pointer to
const v4l2_subdev_internal_ops. Make it const to allow the compiler to
put it in read-only memory.

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/ipu3/ipu3-v4l2.c