diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2024-05-05 10:24:02 +0300 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-08-09 08:56:37 +0300 |
commit | f79f8a8a96046ed08b8ba71dc6ffecbbecec9f21 (patch) | |
tree | 3f47b8ee918f46a34dfc3fce2a0bdf34670a0fb9 /drivers/media/i2c/lm3646.c | |
parent | 677126b274806d8a33e7581c115bcf404b00ac8d (diff) | |
download | linux-f79f8a8a96046ed08b8ba71dc6ffecbbecec9f21.tar.xz |
media: i2c: tvp5150: Constify some structures
'vbi_ram_default' and 'tvp5150_config' are not modified in this diver
and are only used as a const struct.
Constifying these structures moves some data to a read-only section, so
increase overall security.
On a x86_64, with allmodconfig:
Before:
text data bss dec hex filename
57197 2936 36 60169 eb09 drivers/media/i2c/tvp5150.o
After:
text data bss dec hex filename
57517 2608 36 60161 eb01 drivers/media/i2c/tvp5150.o
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'drivers/media/i2c/lm3646.c')
0 files changed, 0 insertions, 0 deletions