From: Julia Lawall Date: Mon, 14 Aug 2017 05:58:37 +0000 (-0400) Subject: media: pxa_camera: constify v4l2_clk_ops structure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2c1630c66b3bcce2e3da530f9a692e548678203a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: pxa_camera: constify v4l2_clk_ops structure 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c index 0d4af6d91ffc..4a800a4147ca 100644 --- a/drivers/media/platform/pxa_camera.c +++ b/drivers/media/platform/pxa_camera.c @@ -2100,7 +2100,7 @@ static const struct v4l2_ioctl_ops pxa_camera_ioctl_ops = { .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 = {