From: Julia Lawall Date: Wed, 2 Aug 2017 14:54:13 +0000 (-0400) Subject: media: DaVinci-VPBE: constify vpbe_dev_ops X-Git-Tag: v4.14-rc6~35^2~374 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b050d46e4a64ab0b9df9a607a6c4dc7b28e9125b;p=platform%2Fkernel%2Flinux-rpi.git media: DaVinci-VPBE: constify vpbe_dev_ops vpbe_dev_ops is only copied into the ops field at the end of a vpbe_device structure, so it can be const. Signed-off-by: Julia Lawall Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/davinci/vpbe.c b/drivers/media/platform/davinci/vpbe.c index 3679b1e..7f64625 100644 --- a/drivers/media/platform/davinci/vpbe.c +++ b/drivers/media/platform/davinci/vpbe.c @@ -790,7 +790,7 @@ static void vpbe_deinitialize(struct device *dev, struct vpbe_device *vpbe_dev) vpss_enable_clock(VPSS_VPBE_CLOCK, 0); } -static struct vpbe_device_ops vpbe_dev_ops = { +static const struct vpbe_device_ops vpbe_dev_ops = { .g_cropcap = vpbe_g_cropcap, .enum_outputs = vpbe_enum_outputs, .set_output = vpbe_set_output,