summaryrefslogtreecommitdiffstats
path: root/include/linux/iio
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2015-12-14 16:35:57 -0600
committerJonathan Cameron <jic23@kernel.org>2015-12-22 17:04:56 +0000
commit7d2c2acac577959dbbddefefa91d1ba1b80460b3 (patch)
tree2b800b3313a765f372692bea0487cdb7eea263ea /include/linux/iio
parente60378c17c7eebf8636fb6831bff1efc9a434521 (diff)
downloadblackbird-op-linux-7d2c2acac577959dbbddefefa91d1ba1b80460b3.tar.gz
blackbird-op-linux-7d2c2acac577959dbbddefefa91d1ba1b80460b3.zip
iio: Make IIO value formating function globally available.
Make IIO value formating function globally available to allow IIO drivers to output values as the core does. Signed-off-by: Andrew F. Davis <afd@ti.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
-rw-r--r--include/linux/iio/iio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
index 19c94c9acc81..b5894118755f 100644
--- a/include/linux/iio/iio.h
+++ b/include/linux/iio/iio.h
@@ -636,6 +636,8 @@ static inline struct dentry *iio_get_debugfs_dentry(struct iio_dev *indio_dev)
}
#endif
+ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals);
+
int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer,
int *fract);
OpenPOWER on IntegriCloud