iio: Declare event_attrs field of iio_info structure as const
authorBhumika Goyal <bhumirks@gmail.com>
Sat, 1 Oct 2016 09:57:18 +0000 (15:27 +0530)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Oct 2016 13:37:35 +0000 (14:37 +0100)
commita9a0d64a8b7af406f03b660cbad948cfd34ed2b0
tree331715ba7f561bd9a9cbd70d79ad2bc927714c85
parent1cb357695849542b71ad8f76b2c2cba308b27e24
iio: Declare event_attrs field of iio_info structure as const

The event_attrs field of iio_info structure is only initialized once
whenever an object of iio_info is created. After that this field
is never modified again anywhere in the kernel. So, declare event_attrs
field of iio_info as a const struct attribute_group.
Checked for occurences throughout the kernel using grep and
coccinelle.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
include/linux/iio/iio.h