Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1705818 > unrolled thread

[PATCH] [media] vs6624: constify vs6624_default_fmt

Started byJulia Lawall <Julia.Lawall@lip6.fr>
First post2017-08-07 21:30 +0200
Last post2017-08-07 21:30 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] [media] vs6624: constify vs6624_default_fmt Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-07 21:30 +0200

#1705818 — [PATCH] [media] vs6624: constify vs6624_default_fmt

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2017-08-07 21:30 +0200
Subject[PATCH] [media] vs6624: constify vs6624_default_fmt
Message-ID<ubVSX-4zQ-17@gated-at.bofh.it>
The structure vs6624_default_fmt is only copied into another
structure field, so it can be const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>

---
 drivers/media/i2c/vs6624.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/i2c/vs6624.c b/drivers/media/i2c/vs6624.c
index f0741ab..5607382 100644
--- a/drivers/media/i2c/vs6624.c
+++ b/drivers/media/i2c/vs6624.c
@@ -58,7 +58,7 @@ struct vs6624 {
 	},
 };
 
-static struct v4l2_mbus_framefmt vs6624_default_fmt = {
+static const struct v4l2_mbus_framefmt vs6624_default_fmt = {
 	.width = VGA_WIDTH,
 	.height = VGA_HEIGHT,
 	.code = MEDIA_BUS_FMT_UYVY8_2X8,

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web