diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-11-26 12:55:13 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-12-12 07:28:32 -0500 |
commit | 616dde2a1ea3df9398b1fcc7d6d6516c5fab6183 (patch) | |
tree | 3200d3c1a6e2fae19393c9e633e6f51fe01d5633 /include/linux/iio/buffer.h | |
parent | 3e1b6c95b990c93f4aa3b17e9f66221e2fa44bee (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 'include/linux/iio/buffer.h')
-rw-r--r-- | include/linux/iio/buffer.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/iio/buffer.h b/include/linux/iio/buffer.h index b0e006c3db43..79cdb3d1b1bc 100644 --- a/include/linux/iio/buffer.h +++ b/include/linux/iio/buffer.h | |||
@@ -25,7 +25,6 @@ struct iio_buffer; | |||
25 | * available. | 25 | * available. |
26 | * @request_update: if a parameter change has been marked, update underlying | 26 | * @request_update: if a parameter change has been marked, update underlying |
27 | * storage. | 27 | * storage. |
28 | * @get_bytes_per_datum:get current bytes per datum | ||
29 | * @set_bytes_per_datum:set number of bytes per datum | 28 | * @set_bytes_per_datum:set number of bytes per datum |
30 | * @get_length: get number of datums in buffer | 29 | * @get_length: get number of datums in buffer |
31 | * @set_length: set number of datums in buffer | 30 | * @set_length: set number of datums in buffer |
@@ -49,7 +48,6 @@ struct iio_buffer_access_funcs { | |||
49 | 48 | ||
50 | int (*request_update)(struct iio_buffer *buffer); | 49 | int (*request_update)(struct iio_buffer *buffer); |
51 | 50 | ||
52 | int (*get_bytes_per_datum)(struct iio_buffer *buffer); | ||
53 | int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd); | 51 | int (*set_bytes_per_datum)(struct iio_buffer *buffer, size_t bpd); |
54 | int (*get_length)(struct iio_buffer *buffer); | 52 | int (*get_length)(struct iio_buffer *buffer); |
55 | int (*set_length)(struct iio_buffer *buffer, int length); | 53 | int (*set_length)(struct iio_buffer *buffer, int length); |