Files
linux/include/linux
Rodrigo Alencar 454f60336d iio: core: add decimal value formatting into 64-bit value
Create new format types for iio values (IIO_VAL_DECIMAL64_*), which
defines the representation of fixed decimal point values into a single
64-bit number. This new format increases the range of represented values,
allowing for integer parts greater than 2^32, as bits are not "wasted"
in the fractional part, which can be seen in IIO_VAL_INT_PLUS_MICRO and
IIO_VAL_INT_PLUS_NANO. Helpers are created to compose and decompose 64-bit
decimals into integer values used in IIO formatting interfaces, which
creates consistency and avoid error-prone manual assignments when using
wordpart macros. When doing the parsing, kstrtodec64() is used with the
scale defined by the specific decimal format type.

Signed-off-by: Rodrigo Alencar <rodrigo.alencar@analog.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2026-06-30 00:15:52 +01:00
..
2026-05-21 13:04:42 +02:00
2026-06-17 11:32:14 +01:00
2026-05-28 21:24:54 -07:00
2026-06-16 08:53:53 -07:00
2026-06-07 10:03:01 -07:00
2026-05-28 17:45:46 -07:00
2026-06-05 00:34:55 -04:00
2026-05-18 11:16:29 +02:00
2026-05-19 17:26:07 +02:00
2026-05-28 11:36:59 -04:00
2026-06-05 17:46:17 -07:00
2026-05-28 21:24:43 -07:00
2026-06-10 10:42:55 -04:00
2026-06-30 00:15:52 +01:00
2026-06-26 22:18:34 -04:00
2026-06-23 17:32:06 -05:00
2026-04-20 11:35:17 -07:00
2026-05-26 11:02:01 +02:00
2026-05-11 16:59:43 +02:00
2026-06-06 15:22:44 +02:00