diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2015-11-15 21:00:02 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-11-18 19:04:01 +0000 |
commit | cef7e12585e61e2a03aea1c99331865213982f3a (patch) | |
tree | 6c64675fced922095a5d79a4b568a2313a991b84 /drivers/iio | |
parent | 52555a5d1058eec96c6bac2928bc965b0077c60e (diff) | |
download | linux-cef7e12585e61e2a03aea1c99331865213982f3a.tar.bz2 |
iio: adc: xilinx: constify iio_buffer_setup_ops structure
The iio_buffer_setup_ops structures are never modified, so declare this one
as const, like the others.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/adc/xilinx-xadc-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/xilinx-xadc-core.c b/drivers/iio/adc/xilinx-xadc-core.c index 0370624a35db..c2b5f1095848 100644 --- a/drivers/iio/adc/xilinx-xadc-core.c +++ b/drivers/iio/adc/xilinx-xadc-core.c @@ -803,7 +803,7 @@ err: return ret; } -static struct iio_buffer_setup_ops xadc_buffer_ops = { +static const struct iio_buffer_setup_ops xadc_buffer_ops = { .preenable = &xadc_preenable, .postenable = &iio_triggered_buffer_postenable, .predisable = &iio_triggered_buffer_predisable, |