media: sun4i: Make sun4i_csi_formats static
authorMaxime Ripard <maxime.ripard@bootlin.com>
Fri, 23 Aug 2019 12:26:32 +0000 (09:26 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 30 Aug 2019 17:44:17 +0000 (14:44 -0300)
The sun4i_csi_formats array is only used in sun4i_v4l2.c, so it doesn't
make any sense to have it !static.

[Sakari Ailus: const static -> static const]

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c

index 772b0fc..83a3a02 100644 (file)
@@ -18,7 +18,7 @@
 #define CSI_DEFAULT_WIDTH      640
 #define CSI_DEFAULT_HEIGHT     480
 
-const struct sun4i_csi_format sun4i_csi_formats[] = {
+static const struct sun4i_csi_format sun4i_csi_formats[] = {
        /* YUV422 inputs */
        {
                .mbus           = MEDIA_BUS_FMT_YUYV8_2X8,