From f90db92ca179fd263f34e7c590fb486c5082db73 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 10 May 2019 14:24:27 +0200 Subject: [PATCH] iio: Add documentation references for iioutils_get_type() Link to where the structure and format are defined. --- src/iio-buffer-utils.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/iio-buffer-utils.c b/src/iio-buffer-utils.c index 4818d3e..f4b2840 100644 --- a/src/iio-buffer-utils.c +++ b/src/iio-buffer-utils.c @@ -116,6 +116,8 @@ iioutils_break_up_name (const char *name) * @be: big endian * @device_dir: the iio device directory * @name: the channel name + * + * See `struct iio_chan_spec` in the kernel headers. **/ static gboolean iioutils_get_type (unsigned *is_signed, @@ -152,6 +154,7 @@ iioutils_get_type (unsigned *is_signed, } } + /* See `iio_show_fixed_type()` in the IIO core for the format */ ret = fscanf (sysfsfp, "%ce:%c%u/%u>>%u", &endianchar,