diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-09-15 11:52:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-15 12:53:56 -0400 |
commit | 6a2f39b78b16b50488f34c8c0e1cfdae2abd9183 (patch) | |
tree | f0d45b356fc3d00e08941bf092b79cef7bf42823 /drivers/iio/light/tcs3472.c | |
parent | da1690e6ca03ae72ff89727d8dfd40f40a365136 (diff) |
iio: Fix tcs3472 buffer size
and drop obsolete #define
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/tcs3472.c')
-rw-r--r-- | drivers/iio/light/tcs3472.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c index 95510bdd7cba..dc7d8234134f 100644 --- a/drivers/iio/light/tcs3472.c +++ b/drivers/iio/light/tcs3472.c | |||
@@ -55,12 +55,9 @@ struct tcs3472_data { | |||
55 | u8 enable; | 55 | u8 enable; |
56 | u8 control; | 56 | u8 control; |
57 | u8 atime; | 57 | u8 atime; |
58 | u16 buffer[4]; | 58 | u16 buffer[8]; /* 4 16-bit channels + 64-bit timestamp */ |
59 | }; | 59 | }; |
60 | 60 | ||
61 | /* 4 16-bit channels + timestamp = 16 bytes */ | ||
62 | #define TSL3472_BUFFER_SIZE 16 | ||
63 | |||
64 | #define TCS3472_CHANNEL(_color, _si, _addr) { \ | 61 | #define TCS3472_CHANNEL(_color, _si, _addr) { \ |
65 | .type = IIO_INTENSITY, \ | 62 | .type = IIO_INTENSITY, \ |
66 | .modified = 1, \ | 63 | .modified = 1, \ |