drm/omap: dma-buf: Constify dma_buf_ops structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sun, 2 Jul 2017 06:19:40 +0000 (11:49 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Aug 2017 12:18:25 +0000 (15:18 +0300)
commit815ed41b9bd0ecbe9dbd58e594da94c2a35480d1
tree8272d207853a3573858eea2c78c0b099c181fa7b
parentfd4ba2ec50de251a3df92b992d7ea26bfbf54213
drm/omap: dma-buf: Constify dma_buf_ops structures.

dma_buf_ops are not supposed to change at runtime. All functions
working with dma_buf_ops provided by <linux/dma-buf.h> work with
const dma_buf_ops. So mark the non-const structs as const.

File size before:
   text    data     bss     dec     hex filename
   1240     112       0    1352     548 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   1352       0       0    1352     548 drivers/gpu/drm/omapdrm/omap_gem_dmabuf.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_gem_dmabuf.c