projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a2f39b
)
iio:buffer_cb: Constify iio_cb_access
author
Lars-Peter Clausen
<lars@metafoo.de>
Sun, 15 Sep 2013 16:09:00 +0000
(17:09 +0100)
committer
Jonathan 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/buffer_cb.c
b/drivers/iio/buffer_cb.c
index 9d19ba74f22bd92125501e2827ef51bbae59da13..f406889248c89038831405b76d675d6c31b6cb46 100644
(file)
--- 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,
};