projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b929c0
)
iio: add struct declaration for iio types
author
Gerald Loacker
<gerald.loacker@wolfvision.net>
Thu, 1 Dec 2022 07:22:18 +0000
(08:22 +0100)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Wed, 28 Dec 2022 17:19:44 +0000
(17:19 +0000)
Add struct for iio type arrays such as IIO_AVAIL_LIST which can be used
instead of int arrays.
Signed-off-by: Gerald Loacker <gerald.loacker@wolfvision.net>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20221201072220.402585-2-gerald.loacker@wolfvision.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
include/linux/iio/iio.h
patch
|
blob
|
history
diff --git
a/include/linux/iio/iio.h
b/include/linux/iio/iio.h
index 8e0afaaa3f7521eb70fcc203109971f386c4b3bd..81413cd3a3e7a570627b969a4d976a0d6ba3cfab 100644
(file)
--- a/
include/linux/iio/iio.h
+++ b/
include/linux/iio/iio.h
@@
-381,6
+381,11
@@
s64 iio_get_time_ns(const struct iio_dev *indio_dev);
#define INDIO_MAX_RAW_ELEMENTS 4
+struct iio_val_int_plus_micro {
+ int integer;
+ int micro;
+};
+
struct iio_trigger; /* forward declaration */
/**