mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
1 parent
566778bc1d
commit
c96651a002
1 file changed
+1
-1
@@ -864,7 +864,7 @@ static int imgu_vidioc_g_meta_fmt(struct file *file, void *fh,
|
||||
|
||||
/******************** function pointers ********************/
|
||||
|
||||
static struct v4l2_subdev_internal_ops imgu_subdev_internal_ops = {
|
||||
static const struct v4l2_subdev_internal_ops imgu_subdev_internal_ops = {
|
||||
.open = imgu_subdev_open,
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user