diff options
author | Andrew F. Davis <afd@ti.com> | 2015-12-14 17:35:57 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-12-22 12:04:56 -0500 |
commit | 7d2c2acac577959dbbddefefa91d1ba1b80460b3 (patch) | |
tree | 2b800b3313a765f372692bea0487cdb7eea263ea | |
parent | e60378c17c7eebf8636fb6831bff1efc9a434521 (diff) |
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>
-rw-r--r-- | drivers/iio/industrialio-core.c | 1 | ||||
-rw-r--r-- | include/linux/iio/iio.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c index d0a84febd435..a45eb2c53d0f 100644 --- a/drivers/iio/industrialio-core.c +++ b/drivers/iio/industrialio-core.c | |||
@@ -470,6 +470,7 @@ ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals) | |||
470 | return 0; | 470 | return 0; |
471 | } | 471 | } |
472 | } | 472 | } |
473 | EXPORT_SYMBOL_GPL(iio_format_value); | ||
473 | 474 | ||
474 | static ssize_t iio_read_channel_info(struct device *dev, | 475 | static ssize_t iio_read_channel_info(struct device *dev, |
475 | struct device_attribute *attr, | 476 | struct device_attribute *attr, |
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) | |||
636 | } | 636 | } |
637 | #endif | 637 | #endif |
638 | 638 | ||
639 | ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals); | ||
640 | |||
639 | int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer, | 641 | int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer, |
640 | int *fract); | 642 | int *fract); |
641 | 643 | ||