Commit f99c4ad3 authored by Colin Ian King's avatar Colin Ian King Committed by Mauro Carvalho Chehab

media: dvb_frontends: make static read-only array fec_tab const

The static array fec_tab is read-only so it make sense to make
it const.
Signed-off-by: default avatarColin Ian King <colin.i.king@gmail.com>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 9de01d22
...@@ -161,8 +161,9 @@ static int stv0299_set_FEC(struct stv0299_state *state, enum fe_code_rate fec) ...@@ -161,8 +161,9 @@ static int stv0299_set_FEC(struct stv0299_state *state, enum fe_code_rate fec)
static enum fe_code_rate stv0299_get_fec(struct stv0299_state *state) static enum fe_code_rate stv0299_get_fec(struct stv0299_state *state)
{ {
static enum fe_code_rate fec_tab[] = { FEC_2_3, FEC_3_4, FEC_5_6, static const enum fe_code_rate fec_tab[] = {
FEC_7_8, FEC_1_2 }; FEC_2_3, FEC_3_4, FEC_5_6, FEC_7_8, FEC_1_2
};
u8 index; u8 index;
dprintk ("%s\n", __func__); dprintk ("%s\n", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment