projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55ef003
)
iio: cm36651: Changed return value of read function
author
Beomho Seo
<beomho.seo@samsung.com>
Mon, 9 Dec 2013 02:17:00 +0000
(
02:17
+0000)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 15 Dec 2013 17:38:02 +0000
(17:38 +0000)
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: Beomho Seo <beomho.seo@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/cm36651.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/light/cm36651.c
b/drivers/iio/light/cm36651.c
index 21df5713001831f91f5dbd592df94837bf612186..0922e39b0ea979a8355ac5da395d527ab871d269 100644
(file)
--- a/
drivers/iio/light/cm36651.c
+++ b/
drivers/iio/light/cm36651.c
@@
-387,7
+387,7
@@
static int cm36651_read_int_time(struct cm36651_data *cm36651,
return -EINVAL;
}
- return IIO_VAL_INT
_PLUS_MICRO
;
+ return IIO_VAL_INT;
}
static int cm36651_write_int_time(struct cm36651_data *cm36651,