aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2014-11-26 12:55:13 -0500
committerJonathan Cameron <jic23@kernel.org>2014-12-12 07:28:32 -0500
commit616dde2a1ea3df9398b1fcc7d6d6516c5fab6183 (patch)
tree3200d3c1a6e2fae19393c9e633e6f51fe01d5633 /drivers/iio
parent3e1b6c95b990c93f4aa3b17e9f66221e2fa44bee (diff)
iio: Remove get_bytes_per_datum() from iio_buffer_access_funcs
There haven't been any users of the get_bytes_per_datum() callback for a while. The core assumes that the number of bytes per datum can be calculated based on the enabled channels and the storage size of the channel and iio_compute_scan_bytes() is used to compute this number. So remove the callback. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/kfifo_buf.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/iio/kfifo_buf.c b/drivers/iio/kfifo_buf.c
index 7134e8ada09a..1258b4e0a722 100644
--- a/drivers/iio/kfifo_buf.c
+++ b/drivers/iio/kfifo_buf.c
@@ -66,11 +66,6 @@ static struct attribute_group iio_kfifo_attribute_group = {
66 .name = "buffer", 66 .name = "buffer",
67}; 67};
68 68
69static int iio_get_bytes_per_datum_kfifo(struct iio_buffer *r)
70{
71 return r->bytes_per_datum;
72}
73
74static int iio_mark_update_needed_kfifo(struct iio_buffer *r) 69static int iio_mark_update_needed_kfifo(struct iio_buffer *r)
75{ 70{
76 struct iio_kfifo *kf = iio_to_kfifo(r); 71 struct iio_kfifo *kf = iio_to_kfifo(r);
@@ -159,7 +154,6 @@ static const struct iio_buffer_access_funcs kfifo_access_funcs = {
159 .read_first_n = &iio_read_first_n_kfifo, 154 .read_first_n = &iio_read_first_n_kfifo,
160 .data_available = iio_kfifo_buf_data_available, 155 .data_available = iio_kfifo_buf_data_available,
161 .request_update = &iio_request_update_kfifo, 156 .request_update = &iio_request_update_kfifo,
162 .get_bytes_per_datum = &iio_get_bytes_per_datum_kfifo,
163 .set_bytes_per_datum = &iio_set_bytes_per_datum_kfifo, 157 .set_bytes_per_datum = &iio_set_bytes_per_datum_kfifo,
164 .get_length = &iio_get_length_kfifo, 158 .get_length = &iio_get_length_kfifo,
165 .set_length = &iio_set_length_kfifo, 159 .set_length = &iio_set_length_kfifo,