tee: tee_shm: Constify dma_buf_ops structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Sat, 1 Jul 2017 12:26:06 +0000 (17:56 +0530)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:55:39 +0000 (15:55 -0500)
commit4322fa6f25d0bad04bf81b09f35cb1d2192b3587
tree5689cffa81fc8b0326aff0e4a901ec231478a5cb
parent6680ab8e7afbbf61eddfce685339926fab73ca09
tee: tee_shm: 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
   2026     112       0    2138     85a drivers/tee/tee_shm.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   2138       0       0    2138     85a drivers/tee/tee_shm.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit 53e3ca5cee24f5fafe4e9ff5fe4b230e1a1b85ed)
drivers/tee/tee_shm.c