summaryrefslogtreecommitdiffstats
path: root/drivers/iio/iio_core.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-10-07 15:11:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-10-12 12:23:33 +0100
commit3661f3f5e961f73d40d93495c0de6711dabe6f8d (patch)
tree8a92f75cfec550ff01183f5626d82bf75d786caa /drivers/iio/iio_core.h
parent11cb454f092397b8cb1ba478efaa5743bea604a2 (diff)
downloadop-kernel-dev-3661f3f5e961f73d40d93495c0de6711dabe6f8d.zip
op-kernel-dev-3661f3f5e961f73d40d93495c0de6711dabe6f8d.tar.gz
iio: Factor IIO value formating into its own function
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/iio_core.h')
-rw-r--r--drivers/iio/iio_core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/iio_core.h b/drivers/iio/iio_core.h
index 9939917..f6db6af 100644
--- a/drivers/iio/iio_core.h
+++ b/drivers/iio/iio_core.h
@@ -35,6 +35,8 @@ int __iio_add_chan_devattr(const char *postfix,
struct list_head *attr_list);
void iio_free_chan_devattr_list(struct list_head *attr_list);
+ssize_t iio_format_value(char *buf, unsigned int type, int val, int val2);
+
/* Event interface flags */
#define IIO_BUSY_BIT_POS 1
OpenPOWER on IntegriCloud