mirror of
https://github.com/torvalds/linux.git
synced 2026-12-05 04:44:03 +00:00
I've tested TSL2550 driver and I've found a bug: when light is off, returned value from tsl2550_calculate_lux function is -1 when it should be 0 (sensor correctly read that light was off). I think the bug is that a zero c0 value (approximated value of ch0) is misinterpreted as an error. Signed-off-by: Michele Jr De Candia <[email protected]> Acked-by: Rodolfo Giometti <[email protected]> Signed-off-by: Jean Delvare <[email protected]>