summaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorAndrew F. Davis <afd@ti.com>2015-12-14 23:35:57 +0100
committerJonathan Cameron <jic23@kernel.org>2015-12-22 18:04:56 +0100
commit7d2c2acac577959dbbddefefa91d1ba1b80460b3 (patch)
tree2b800b3313a765f372692bea0487cdb7eea263ea /drivers/iio/industrialio-core.c
parentiio: mma8452: use enum for channel index (diff)
downloadlinux-7d2c2acac577959dbbddefefa91d1ba1b80460b3.tar.xz
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 'drivers/iio/industrialio-core.c')
-rw-r--r--drivers/iio/industrialio-core.c1
1 files changed, 1 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)
return 0;
}
}
+EXPORT_SYMBOL_GPL(iio_format_value);
static ssize_t iio_read_channel_info(struct device *dev,
struct device_attribute *attr,