summary refs log tree commit diff
path: root/drivers
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2022-01-24 00:02:42 +0100
committerMauro Carvalho Chehab <mchehab@kernel.org>2022-03-07 11:52:06 +0100
commitf99c4ad386dd487fde4aeb203ff3b1f5f47a5a82 (patch)
treebf1d75afdd1cb8c0bdf040d79e7f432ed6faf987 /drivers
parent9de01d22409a37f7f198c22c03c6b220d14a7d4c (diff)
downloadlinux-f99c4ad386dd487fde4aeb203ff3b1f5f47a5a82.tar.gz
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: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb-frontends/stv0299.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb-frontends/stv0299.c b/drivers/media/dvb-frontends/stv0299.c
index 421395ea3334..10e7cc8ffc43 100644
--- a/drivers/media/dvb-frontends/stv0299.c
+++ b/drivers/media/dvb-frontends/stv0299.c
@@ -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 fec_tab[] = { FEC_2_3, FEC_3_4, FEC_5_6,
-					       FEC_7_8, FEC_1_2 };
+	static const enum fe_code_rate fec_tab[] = {
+		FEC_2_3, FEC_3_4, FEC_5_6, FEC_7_8, FEC_1_2
+	};
 	u8 index;
 
 	dprintk ("%s\n", __func__);