diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-15 18:09:00 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-15 19:58:26 +0200 |
commit | c7a22c36805b015fd220f9fd13d0a14207d556e0 (patch) | |
tree | f76ded3d64a390b9548f84c6e3480ac8cde33a72 /drivers/iio/buffer_cb.c | |
parent | iio: Fix tcs3472 buffer size (diff) | |
download | linux-c7a22c36805b015fd220f9fd13d0a14207d556e0.tar.xz linux-c7a22c36805b015fd220f9fd13d0a14207d556e0.zip |
iio:buffer_cb: Constify iio_cb_access
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>
Diffstat (limited to 'drivers/iio/buffer_cb.c')
-rw-r--r-- | drivers/iio/buffer_cb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/buffer_cb.c b/drivers/iio/buffer_cb.c index 9d19ba74f22b..f406889248c8 100644 --- a/drivers/iio/buffer_cb.c +++ b/drivers/iio/buffer_cb.c @@ -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, }; |