Commit f5709d5f authored by Peter Meerwald's avatar Peter Meerwald Committed by Jonathan Cameron

staging:iio: Fix iio_utils.h function prototypes

Signed-off-by: default avatarPeter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 0378250b
...@@ -633,7 +633,7 @@ int read_sysfs_posint(char *filename, char *basedir) ...@@ -633,7 +633,7 @@ int read_sysfs_posint(char *filename, char *basedir)
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 @@ int read_sysfs_float(char *filename, char *basedir, float *val) ...@@ -653,9 +653,9 @@ int read_sysfs_float(char *filename, char *basedir, float *val)
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) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment