iio: Make IIO value formating function globally available.
authorAndrew F. Davis <afd@ti.com>
Mon, 14 Dec 2015 22:35:57 +0000 (16:35 -0600)
committerJonathan Cameron <jic23@kernel.org>
Tue, 22 Dec 2015 17:04:56 +0000 (17:04 +0000)
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>
drivers/iio/industrialio-core.c
include/linux/iio/iio.h

index d0a84febd435ac14aa4123c07f6d6c68323a0d98..a45eb2c53d0fd1c35550098fc221fdf7d850d6fe 100644 (file)
@@ -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,
index 19c94c9acc816ab17ab8822240d0169c68670b22..b5894118755fbf7441b1dfe6d7a623f46a8f370f 100644 (file)
@@ -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);