]> git.baikalelectronics.ru Git - kernel.git/commit
media: radio: si4713: constify static struct v4l2_ioctl_ops
authorRikard Falkeborn <rikard.falkeborn@gmail.com>
Wed, 12 May 2021 17:35:14 +0000 (19:35 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Jun 2021 11:26:11 +0000 (13:26 +0200)
commit37b6d19c176fff110f50e89335af0e0c3453971f
tree2d22b882bc50210125c9fb6a296b20a9ef92bd7e
parent7939d388f111871adb206faf8c50a1a611421162
media: radio: si4713: constify static struct v4l2_ioctl_ops

The only usage of radio_si4713_ioctl_ops is to assign its address to the
ioctl_ops field in the video_device struct, which is a pointer to const.
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: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/radio/si4713/radio-platform-si4713.c