Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew F. Davis and committed by
Jonathan Cameron
7d2c2aca e60378c1

+3
+1
drivers/iio/industrialio-core.c
··· 470 470 return 0; 471 471 } 472 472 } 473 + EXPORT_SYMBOL_GPL(iio_format_value); 473 474 474 475 static ssize_t iio_read_channel_info(struct device *dev, 475 476 struct device_attribute *attr,
+2
include/linux/iio/iio.h
··· 636 636 } 637 637 #endif 638 638 639 + ssize_t iio_format_value(char *buf, unsigned int type, int size, int *vals); 640 + 639 641 int iio_str_to_fixpoint(const char *str, int fract_mult, int *integer, 640 642 int *fract); 641 643