linux-stable/drivers/media/usb/usbtv
Rikard Falkeborn 6a49401e15 media: usbtv: constify static structs
Constify two static structs which are never modified to allow the
compiler to put them in read-only memory.

The only usage of norm_params is only read from it in
usbtv_configure_for_norm(). Making it const shrinks the resulting
ko-file with 300 bytes (tested with gcc 10).

The only usage of usbtv_ioctl_ops is to put its address to the ioctl_ops
field in the video_device struct. Making it const moves ~1kb to
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>
2021-03-11 11:59:42 +01:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
usbtv-audio.c media: Drop superfluous ioctl PCM ops 2019-12-13 09:33:22 +01:00
usbtv-core.c media: usbtv: Fix refcounting mixup 2020-10-08 09:08:20 +02:00
usbtv-video.c media: usbtv: constify static structs 2021-03-11 11:59:42 +01:00
usbtv.h media: usbtv: Add SECAM support 2018-05-04 06:48:49 -04:00