Browse Source

staging:iio: Fix iio_utils.h function prototypes

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Peter Meerwald 10 years ago
parent
commit
f5709d5fa9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      drivers/staging/iio/Documentation/iio_utils.h

+ 3 - 3
drivers/staging/iio/Documentation/iio_utils.h

@@ -633,7 +633,7 @@ error_free:
 
 
 int read_sysfs_float(char *filename, char *basedir, float *val)
 int read_sysfs_float(char *filename, char *basedir, float *val)
 {
 {
-	float ret = 0;
+	int ret = 0;
 	FILE  *sysfsfp;
 	FILE  *sysfsfp;
 	char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
 	char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
 	if (temp == NULL) {
 	if (temp == NULL) {
@@ -653,9 +653,9 @@ error_free:
 	return ret;
 	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;
 	FILE  *sysfsfp;
 	char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
 	char *temp = malloc(strlen(basedir) + strlen(filename) + 2);
 	if (temp == NULL) {
 	if (temp == NULL) {