media: ov772x: constify ov772x_frame_intervals
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 15:34:44 +0000 (10:34 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Mar 2018 15:34:44 +0000 (10:34 -0500)
The values on this array never changes. Make it const.

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/ov772x.c

index 16665af0c7124a91524b2d6df9722d938c50b534..321105bb3161f923c4c4d91137051be9794dff04 100644 (file)
@@ -531,7 +531,7 @@ static const struct ov772x_win_size ov772x_win_sizes[] = {
 /*
  * frame rate settings lists
  */
-static unsigned int ov772x_frame_intervals[] = { 5, 10, 15, 20, 30, 60 };
+static const unsigned int ov772x_frame_intervals[] = { 5, 10, 15, 20, 30, 60 };
 
 /*
  * general function