mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
media: dvb-bt8xx: Make variable dst_config constant
Static structure dst_config, of type dst_config, is not used except to be assigned as the value of field state of a variable having type dst_state *. In the definition of dst_state, field config is declared as const. Hence dst_config, when assigned to config, cannot be modified. Therefore, make dst_config const as well. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
a9547e520b
commit
b501b09ae8
@ -393,7 +393,7 @@ static struct mt352_config advbt771_samsung_tdtc9251dh0_config = {
|
||||
.demod_init = advbt771_samsung_tdtc9251dh0_demod_init,
|
||||
};
|
||||
|
||||
static struct dst_config dst_config = {
|
||||
static const struct dst_config dst_config = {
|
||||
.demod_address = 0x55,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user