Commit d952b4e6 authored by simran singhal's avatar simran singhal Committed by Jonathan Cameron

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: default avatarsimran singhal <singhalsimran0@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 4214dc18
...@@ -1676,7 +1676,7 @@ static const struct attribute_group tsl2X7X_device_attr_group_tbl[] = { ...@@ -1676,7 +1676,7 @@ static const struct attribute_group tsl2X7X_device_attr_group_tbl[] = {
}, },
}; };
static struct attribute_group tsl2X7X_event_attr_group_tbl[] = { static const struct attribute_group tsl2X7X_event_attr_group_tbl[] = {
[ALS] = { [ALS] = {
.attrs = tsl2X7X_ALS_event_attrs, .attrs = tsl2X7X_ALS_event_attrs,
.name = "events", .name = "events",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment