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


Groups > linux.kernel > #1710657 > unrolled thread

[PATCH] [media] pxa_camera: constify v4l2_clk_ops structure

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

Back to article view | Back to linux.kernel


Contents

  [PATCH] [media] pxa_camera: constify v4l2_clk_ops structure Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-14 08:30 +0200

#1710657 — [PATCH] [media] pxa_camera: constify v4l2_clk_ops structure

FromJulia Lawall <Julia.Lawall@lip6.fr>
Date2017-08-14 08:30 +0200
Subject[PATCH] [media] pxa_camera: constify v4l2_clk_ops structure
Message-ID<ueh2V-C7-1@gated-at.bofh.it>
This v4l2_clk_ops structure is only passed as the first argument of
v4l2_clk_register, which is const, so the v4l2_clk_ops structure can
also be const.

Done with the help of Coccinelle.

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

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

diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c
index 0d4af6d..4a800a4 100644
--- a/drivers/media/platform/pxa_camera.c
+++ b/drivers/media/platform/pxa_camera.c
@@ -2100,7 +2100,7 @@ static int pxac_fops_camera_release(struct file *filp)
 	.vidioc_unsubscribe_event	= v4l2_event_unsubscribe,
 };
 
-static struct v4l2_clk_ops pxa_camera_mclk_ops = {
+static const struct v4l2_clk_ops pxa_camera_mclk_ops = {
 };
 
 static const struct video_device pxa_camera_videodev_template = {

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web