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>
This commit is contained in:
parent
da1690e6ca
commit
6a2f39b78b
1 changed files with 1 additions and 4 deletions
|
@ -55,12 +55,9 @@ struct tcs3472_data {
|
||||||
u8 enable;
|
u8 enable;
|
||||||
u8 control;
|
u8 control;
|
||||||
u8 atime;
|
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) { \
|
#define TCS3472_CHANNEL(_color, _si, _addr) { \
|
||||||
.type = IIO_INTENSITY, \
|
.type = IIO_INTENSITY, \
|
||||||
.modified = 1, \
|
.modified = 1, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue