Re: [PATCH 2/5] [media] atomisp: constify videobuf_queue_ops structures

2017-08-08 Thread Sakari Ailus
On Fri, Aug 04, 2017 at 02:09:45PM +0200, Julia Lawall wrote: > These videobuf_queue_ops structures are only passed as the second > argument to videobuf_queue_vmalloc_init, which is declared as const. > Thus the videobuf_queue_ops structures themselves can be const. > > Done with the help of Cocci

[PATCH 2/5] [media] atomisp: constify videobuf_queue_ops structures

2017-08-04 Thread Julia Lawall
These videobuf_queue_ops structures are only passed as the second argument to videobuf_queue_vmalloc_init, which is declared as const. Thus the videobuf_queue_ops structures themselves can be const. Done with the help of Coccinelle. // @r disable optional_qualifier@ identifier i; position p; @@