staging:iio: Fix iio_utils.h function prototypes

Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Peter Meerwald 2014-12-06 06:00:00 +00:00 committed by Jonathan Cameron
parent 0378250b52
commit f5709d5fa9

View file

@ -633,7 +633,7 @@ int read_sysfs_posint(char *filename, char *basedir)
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 @@ int read_sysfs_float(char *filename, char *basedir, float *val)
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) {