mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 22:25:16 +00:00
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>
This commit is contained in:
parent
1cb3576958
commit
a9a0d64a8b
1 changed files with 1 additions and 1 deletions
|
@ -381,7 +381,7 @@ struct iio_dev;
|
|||
**/
|
||||
struct iio_info {
|
||||
struct module *driver_module;
|
||||
struct attribute_group *event_attrs;
|
||||
const struct attribute_group *event_attrs;
|
||||
const struct attribute_group *attrs;
|
||||
|
||||
int (*read_raw)(struct iio_dev *indio_dev,
|
||||
|
|
Loading…
Add table
Reference in a new issue