Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 128d6637 authored by Beomho Seo's avatar Beomho Seo Committed by Jonathan Cameron
Browse files

iio: cm36651: Changed return value of read function



A return value of callback have been changed to IIO_VAL_INT.
If not IIO_VAL_INT, driver will print wrong value(*_read_int_time).

A follow up patch will deal with a related bug in the new event handling
code.

Signed-off-by: default avatarBeomho Seo <beomho.seo@samsung.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 55ef003e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -387,7 +387,7 @@ static int cm36651_read_int_time(struct cm36651_data *cm36651,
		return -EINVAL;
		return -EINVAL;
	}
	}


	return IIO_VAL_INT_PLUS_MICRO;
	return IIO_VAL_INT;
}
}


static int cm36651_write_int_time(struct cm36651_data *cm36651,
static int cm36651_write_int_time(struct cm36651_data *cm36651,