diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2014-12-06 01:00:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-06-14 11:08:02 -0400 |
commit | f5709d5fa966cceadc41d66117d7eed52425b67e (patch) | |
tree | 8412cb4ac9addf2d63f5463d7019ff680d2f3fcd | |
parent | 0378250b52ca3afb83257868448ef9d1efcbf607 (diff) |
staging:iio: Fix iio_utils.h function prototypes
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-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 a9cfc06edb01..0973a092224a 100644 --- a/drivers/staging/iio/Documentation/iio_utils.h +++ b/drivers/staging/iio/Documentation/iio_utils.h | |||
@@ -633,7 +633,7 @@ error_free: | |||
633 | 633 | ||
634 | int read_sysfs_float(char *filename, char *basedir, float *val) | 634 | int read_sysfs_float(char *filename, char *basedir, float *val) |
635 | { | 635 | { |
636 | float ret = 0; | 636 | int ret = 0; |
637 | FILE *sysfsfp; | 637 | FILE *sysfsfp; |
638 | char *temp = malloc(strlen(basedir) + strlen(filename) + 2); | 638 | char *temp = malloc(strlen(basedir) + strlen(filename) + 2); |
639 | if (temp == NULL) { | 639 | if (temp == NULL) { |
@@ -653,9 +653,9 @@ error_free: | |||
653 | return ret; | 653 | return ret; |
654 | } | 654 | } |
655 | 655 | ||
656 | read_sysfs_string(const char *filename, const char *basedir, char *str) | 656 | int read_sysfs_string(const char *filename, const char *basedir, char *str) |
657 | { | 657 | { |
658 | float ret = 0; | 658 | int ret = 0; |
659 | FILE *sysfsfp; | 659 | FILE *sysfsfp; |
660 | char *temp = malloc(strlen(basedir) + strlen(filename) + 2); | 660 | char *temp = malloc(strlen(basedir) + strlen(filename) + 2); |
661 | if (temp == NULL) { | 661 | if (temp == NULL) { |