]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: light: tsl2x7x constify attribute_group structures
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 1 Apr 2017 02:28:56 +0000 (07:58 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Apr 2017 10:40:36 +0000 (11:40 +0100)
commit6284d2123528f40b3c8f2c0f329a10ac36599378
tree894e589e6bde34ff254de81db20331b6f33d4201
parent29623c6d0bae47176bf097fd8679dbc6b8c520d1
staging: iio: light: tsl2x7x constify attribute_group structures

As the event_attrs field of iio_info structures is constant, so these
attribute_group structures can also be declared constant.

File size before:
   text    data     bss     dec     hex filename
  15064    1528       0   16592    40d0
drivers/staging/iio/light/tsl2x7x_core.o

File size after:
   text    data     bss     dec     hex filename
  15192    1400       0   16592    40d0
drivers/staging/iio/light/tsl2x7x_core.o

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/light/tsl2x7x_core.c