]> git.baikalelectronics.ru Git - kernel.git/commit
iio: industrialio-trigger: constify device_type structures
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 21 Jan 2017 16:59:49 +0000 (22:29 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sun, 22 Jan 2017 13:21:42 +0000 (13:21 +0000)
commit4595f3b2ee97b681c6488909d9097c61ca54e82a
tree1e1abdbf0ddce7796d51b3ddea3093427ea206b6
parentea7fef4fc6154f7781706cbd9f2070639b2f35e7
iio: industrialio-trigger: constify device_type structures

Declare device_type structure as const as it is only stored in the
type field of a device structure. This field is of type const, so add
const to declaration of device_type structure.

File size before:
   text    data     bss     dec     hex filename
   5389     208      48    5645    160d iio/industrialio-trigger.o

File size after:
   text    data     bss     dec     hex filename
   5453     176      48    5677    162d iio/industrialio-trigger.o

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-trigger.c