diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2014-12-06 06:00:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-06-14 15:08:02 (GMT) |
commit | f5709d5fa966cceadc41d66117d7eed52425b67e (patch) | |
tree | 8412cb4ac9addf2d63f5463d7019ff680d2f3fcd /drivers/staging/iio/Documentation | |
parent | 0378250b52ca3afb83257868448ef9d1efcbf607 (diff) | |
download | linux-f5709d5fa966cceadc41d66117d7eed52425b67e.tar.xz |
staging:iio: Fix iio_utils.h function prototypes
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/Documentation')
-rw-r--r-- | drivers/staging/iio/Documentation/iio_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/iio/Documentation/iio_utils.h b/drivers/staging/iio/Documentation/iio_utils.h index a9cfc06..0973a09 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h @@ -633,7 +633,7 @@ error_free: int read_sysfs_float(char *filename, char *basedir, float *val) { - float ret = 0; + int ret = 0; FILE *sysfsfp; char *temp = malloc(strlen(basedir) + strlen(filename) + 2); if (temp == NULL) { @@ -653,9 +653,9 @@ error_free: return ret; } -read_sysfs_string(const char *filename, const char *basedir, char *str) +int read_sysfs_string(const char *filename, const char *basedir, char *str) { - float ret = 0; + int ret = 0; FILE *sysfsfp; char *temp = malloc(strlen(basedir) + strlen(filename) + 2); if (temp == NULL) { |