Skip to contentSkip to conversation

media: sun4i: Make sun4i_csi_formats static

PATCH New Maxime Ripard 1 participant 1 message Aug 23, 2019

Subsystems (3)
lore
Share & tools
lore

Maxime Ripard

author maintainer
#0 lore raw

PATCH 1/1 media: sun4i: Make sun4i_csi_formats static

From: Maxime Ripard <[email protected]>

The sun4i_csi_formats array is only used in sun4i_v4l2.c, so it doesn't make any sense to have it !static.

---
 drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/platform/sunxi/sun4i-csi/sun4i_v4l2.c +1 -1
index 772b0fc5920f..967bdb99221c 100644
@@ -18,7 +18,7 @@
 #define CSI_DEFAULT_WIDTH	640
 #define CSI_DEFAULT_HEIGHT	480
 
-const struct sun4i_csi_format sun4i_csi_formats[] = {
+const static struct sun4i_csi_format sun4i_csi_formats[] = {
 	/* YUV422 inputs */
 	{
 		.mbus		= MEDIA_BUS_FMT_YUYV8_2X8,
Signature · 1 line
2.21.0