Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cef7e125 authored by Julia Lawall's avatar Julia Lawall Committed by Jonathan Cameron
Browse files

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: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 52555a5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -803,7 +803,7 @@ static int xadc_preenable(struct iio_dev *indio_dev)
	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,