From: Peter Meerwald Date: Sun, 15 Sep 2013 15:52:00 +0000 (+0100) Subject: iio: Fix tcs3472 buffer size X-Git-Tag: MMI-PSA29.97-13-9~13364^2~694^2~52 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6a2f39b78b16b50488f34c8c0e1cfdae2abd9183;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git iio: Fix tcs3472 buffer size and drop obsolete #define Signed-off-by: Peter Meerwald Signed-off-by: Jonathan Cameron --- 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 { 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, \