Re: [PATCH v7 3/8] iio: test: add kunit test for fixed-point parsing
From: Jonathan Cameron
Date: Sun Feb 22 2026 - 12:34:25 EST
On Mon, 16 Feb 2026 15:02:18 +0000
Rodrigo Alencar via B4 Relay <devnull+rodrigo.alencar.analog.com@xxxxxxxxxx> wrote:
> From: Rodrigo Alencar <rodrigo.alencar@xxxxxxxxxx>
>
> Add kunit test cases that aims to verify expected behavior for
> iio_str_to_fixpoint() and iio_str_to_fixpoint64().
> To run the test, create a .kunitconfig file with:
>
> CONFIG_KUNIT=y
> CONFIG_IIO=y
> CONFIG_IIO_FIXPOINT_PARSE_KUNIT_TEST=y
>
> and run the command:
> ./tools/testing/kunit/kunit.py run --kunitconfig=.kunitconfig
>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxx>
> Signed-off-by: Rodrigo Alencar <rodrigo.alencar@xxxxxxxxxx>
> ---
> MAINTAINERS | 1 +
> drivers/iio/test/Kconfig | 12 +
> drivers/iio/test/Makefile | 1 +
> drivers/iio/test/iio-test-fixpoint-parse.c | 470 +++++++++++++++++++++++++++++
> 4 files changed, 484 insertions(+)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 1bf39f6d964e..a0d845117b52 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1640,6 +1640,7 @@ L: linux-iio@xxxxxxxxxxxxxxx
> S: Supported
> W: https://ez.analog.com/linux-software-drivers
> F: Documentation/devicetree/bindings/iio/frequency/adi,adf41513.yaml
> +F: drivers/iio/test/iio-test-fixpoint-parse.c
This doesn't have any much to do with the adf41513, that's just one user
of the code being tested.
Hence this needs it's own MAINTAINERS entry.
Other than that, looks excellent to me. Thanks for adding these!
Jonathan
>