mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 10:14:23 +08:00
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>
This commit is contained in:
parent
52555a5d10
commit
cef7e12585
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user