diff options
author | Sebastian Reichel <sre@kernel.org> | 2019-04-18 22:27:38 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2019-04-18 22:27:38 +0300 |
commit | ec8242de407f6818f94d0f44ef2f395483215503 (patch) | |
tree | 82b9f5c04472ff37357e6dd6797470724fb35f1b /include/linux/iio | |
parent | c279adafe6ab333da24e27548e7f119421d9e192 (diff) | |
parent | 89388ca4955fe2f70936488723c9bb74099f37a3 (diff) | |
download | linux-ec8242de407f6818f94d0f44ef2f395483215503.tar.xz |
Merge 'ib-jz47xx-battery-prereq' into psy-next
Merge immutable branch containing the IIO changes required
for the new Ingenic JZ47xx battery fuel gauge driver.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r-- | include/linux/iio/consumer.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/iio/consumer.h b/include/linux/iio/consumer.h index 9887f4f8e2a8..b2d34831ed7c 100644 --- a/include/linux/iio/consumer.h +++ b/include/linux/iio/consumer.h @@ -291,6 +291,20 @@ int iio_read_avail_channel_raw(struct iio_channel *chan, const int **vals, int *length); /** + * iio_read_avail_channel_attribute() - read available channel attribute values + * @chan: The channel being queried. + * @vals: Available values read back. + * @type: Type of values read back. + * @length: Number of entries in vals. + * @attribute: info attribute to be read back. + * + * Returns an error code, IIO_AVAIL_RANGE or IIO_AVAIL_LIST. + */ +int iio_read_avail_channel_attribute(struct iio_channel *chan, + const int **vals, int *type, int *length, + enum iio_chan_info_enum attribute); + +/** * iio_get_channel_type() - get the type of a channel * @channel: The channel being queried. * @type: The type of the channel. |