mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-14 12:37:32 +00:00
iio: add struct declaration for iio types
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>
This commit is contained in:
parent
1b929c02af
commit
08f01cc1d6
1 changed files with 5 additions and 0 deletions
|
@ -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 */
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue