diff options
| author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2021-02-07 00:21:39 +0300 |
|---|---|---|
| committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-11 13:59:42 +0300 |
| commit | 6a49401e15b5ea41503a6905f99f3b32f0a534fb (patch) | |
| tree | d01ed8acb02c5236a5600f3bd5197b33388f1109 /include/linux/timerqueue.h | |
| parent | 6b45fbfa53099259c8038e0626dec8f197d19857 (diff) | |
| download | linux-6a49401e15b5ea41503a6905f99f3b32f0a534fb.tar.xz | |
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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
