Hi, > > chip has four 16-bit channels for red, green, blue, clear color > > intensity; driver supports the TCS3x7x family of devices and was > > tested with a TCS34725 chip; further information here: > > http://www.ams.com/eng/Products/Light-Sensors/Color-Sensor/TCS34725 > > > > v2 (thanks to Jonathan Cameron): > > * drop dynamic buffer allocation, buffer is in tcs3472_data > > * limit sysfs output to PAGE_SIZE > > * check val2 == 0 when writing CALIBSCALE > Applied to the togreg branch of iio.git > > +struct tcs3472_data { > > + struct i2c_client *client; > > + u8 enable; > > + u8 control; > > + u8 atime; > > + u16 buffer[4]; > > +}; > > + > > +/* 4 16-bit channels + timestamp = 16 bytes */ > > +#define TSL3472_BUFFER_SIZE 16 I messed this up, sorry buffer must be of size 8 (hence 16 bytes) obviously; patch following (removing the obsolete #define also) thanks, p. -- Peter Meerwald +43-664-2444418 (mobile) -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html