]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iio:buffer_cb: Constify iio_cb_access
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 15 Sep 2013 16:09:00 +0000 (17:09 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Sep 2013 17:58:26 +0000 (18:58 +0100)
The iio_cb_access struct is never modified so we can mark it as const.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/buffer_cb.c

index 9d19ba74f22bd92125501e2827ef51bbae59da13..f406889248c89038831405b76d675d6c31b6cb46 100644 (file)
@@ -21,7 +21,7 @@ static int iio_buffer_cb_store_to(struct iio_buffer *buffer, u8 *data)
        return cb_buff->cb(data, cb_buff->private);
 }
 
-static struct iio_buffer_access_funcs iio_cb_access = {
+static const struct iio_buffer_access_funcs iio_cb_access = {
        .store_to = &iio_buffer_cb_store_to,
 };