projects
/
GitHub
/
moto-9609
/
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:
da1690e
)
iio: Fix tcs3472 buffer size
author
Peter Meerwald
<pmeerw@pmeerw.net>
Sun, 15 Sep 2013 15:52:00 +0000
(16:52 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 15 Sep 2013 16:53:56 +0000
(17:53 +0100)
and drop obsolete #define
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/light/tcs3472.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/light/tcs3472.c
b/drivers/iio/light/tcs3472.c
index 95510bdd7cba3a230328d1dbec1cc6f960aab333..dc7d8234134f687a663d06a0b7a7a8207f6b9327 100644
(file)
--- a/
drivers/iio/light/tcs3472.c
+++ b/
drivers/iio/light/tcs3472.c
@@
-55,12
+55,9
@@
struct tcs3472_data {
u8 enable;
u8 control;
u8 atime;
- u16 buffer[
4];
+ u16 buffer[
8]; /* 4 16-bit channels + 64-bit timestamp */
};
-/* 4 16-bit channels + timestamp = 16 bytes */
-#define TSL3472_BUFFER_SIZE 16
-
#define TCS3472_CHANNEL(_color, _si, _addr) { \
.type = IIO_INTENSITY, \
.modified = 1, \