aboutsummaryrefslogtreecommitdiff
path: root/Documentation/driver-api
diff options
context:
space:
mode:
authorFrancesco Lavra <flavra@baylibre.com>2026-03-24 09:47:53 +0100
committerJonathan Cameron <jic23@kernel.org>2026-04-27 09:58:16 +0100
commitb29f00ef08a7afdedc0b36cc0bead579d6977ced (patch)
tree9fa59462cbb97cb5ba523c2097da779d37b28b62 /Documentation/driver-api
parentcdd445d4b2a910ade742c3d6a86bc3fca4da9e0c (diff)
iio: ABI: Add support for floating-point numbers in buffer scan elements
In the data storage description of a scan element, the first character after the colon can have the values 's' and 'u' to specify signed and unsigned integers, respectively. Add 'f' as an allowed value to specify floating-point numbers formatted according to the IEEE 754 standard. Signed-off-by: Francesco Lavra <flavra@baylibre.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation/driver-api')
-rw-r--r--Documentation/driver-api/iio/buffers.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/driver-api/iio/buffers.rst b/Documentation/driver-api/iio/buffers.rst
index e16abaf826fe..8779022e3da5 100644
--- a/Documentation/driver-api/iio/buffers.rst
+++ b/Documentation/driver-api/iio/buffers.rst
@@ -37,9 +37,10 @@ directory contains attributes of the following form:
* :file:`index`, the scan_index of the channel.
* :file:`type`, description of the scan element data storage within the buffer
and hence the form in which it is read from user space.
- Format is [be|le]:[s|u]bits/storagebits[Xrepeat][>>shift] .
+ Format is [be|le]:[f|s|u]bits/storagebits[Xrepeat][>>shift] .
* *be* or *le*, specifies big or little endian.
+ * *f*, specifies if floating-point.
* *s* or *u*, specifies if signed (2's complement) or unsigned.
* *bits*, is the number of valid data bits.
* *storagebits*, is the number of bits (after padding) that it occupies in the