diff options
| author | Rikard Falkeborn <rikard.falkeborn@gmail.com> | 2020-10-01 01:29:39 +0200 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-10-10 18:05:34 +0100 |
| commit | 681ab2ce293638480f5395c73e5430dfd517015d (patch) | |
| tree | 605e15c991aba0894a376376e56bc45485a69207 /tools/perf/scripts/python/bin | |
| parent | iio: dac: ad7303: remove platform data header (diff) | |
| download | linux-681ab2ce293638480f5395c73e5430dfd517015d.tar.gz linux-681ab2ce293638480f5395c73e5430dfd517015d.zip | |
iio: accel: mma8452: Constify static struct attribute_group
The only usage of mma8452_event_attribute_group is to assign its address
to the event_attrs field in the iio_info struct, which is a const
pointer. Make it const to allow the compiler to put it in read-only
memory. This was the only non-const static struct in drivers/iio.
Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200930232939.31131-1-rikard.falkeborn@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
