media: staging: atomisp: mt9m114: constify acpi_device_id
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 6 Jul 2017 16:40:45 +0000 (12:40 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 19 Jul 2017 20:24:34 +0000 (16:24 -0400)
commit3f9ae4b978759d0af56fe89b2b82e1d827684675
treefe87f6010862e5c641c0b349a267190bcc27d702
parent02cc60ca0c7598c015d3e6b1bde6257c613299e1
media: staging: atomisp: mt9m114: constify acpi_device_id

acpi_device_id are not supposed to change at runtime. All functions
working with acpi_device_id provided by <acpi/acpi_bus.h> work with
const acpi_device_id. So mark the non-const structs as const.

File size before:
   text    data     bss     dec     hex filename
  15148    2640       8   17796    4584
drivers/staging/media/atomisp/i2c/mt9m114.o

File size After adding 'const':
   text    data     bss     dec     hex filename
  15244    2512       8   17764    4564
drivers/staging/media/atomisp/i2c/mt9m114.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/i2c/mt9m114.c