Re: [PATCH] drivers: media: i2c: constify v4l2_subdev_* structures

2016-12-12 Thread Laurent Pinchart
Hi Bhumika, Thank you for the patch. On Monday 12 Dec 2016 13:15:32 Bhumika Goyal wrote: > v4l2_subdev_{core/pad/video}_ops structures are stored in the > fields of the v4l2_subdev_ops structure which are of type const. > Also, v4l2_subdev_ops structure is passed to a function > having its argume

[PATCH] drivers: media: i2c: constify v4l2_subdev_* structures

2016-12-11 Thread Bhumika Goyal
v4l2_subdev_{core/pad/video}_ops structures are stored in the fields of the v4l2_subdev_ops structure which are of type const. Also, v4l2_subdev_ops structure is passed to a function having its argument of type const. As these structures are never modified, so declare them as const. Done using Cocc