projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39b441b
)
iio:light:cm3323: pass up error value
author
Hartmut Knaack
<knaack.h@gmx.de>
Wed, 17 Jun 2015 22:32:01 +0000
(
00:32
+0200)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 21 Jun 2015 13:26:36 +0000
(14:26 +0100)
cm3323_get_it_bits() returns a valid error code, so pass it up in
cm3323_read_raw().
Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Reviewed-by: Daniel Baluta <daniel.baluta@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/cm3323.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/light/cm3323.c
b/drivers/iio/light/cm3323.c
index 869033e48a1facdd4021e3c9d2889d9fc7ab0773..9c9136309ffef19004ab29645e87414780077d67 100644
(file)
--- a/
drivers/iio/light/cm3323.c
+++ b/
drivers/iio/light/cm3323.c
@@
-175,7
+175,7
@@
static int cm3323_read_raw(struct iio_dev *indio_dev,
i = cm3323_get_it_bits(data);
if (i < 0) {
mutex_unlock(&data->mutex);
- return
-EINVAL
;
+ return
i
;
}
*val = cm3323_int_time[i].val;
This page took
0.02611 seconds
and
5
git commands to generate.