diff options
author | Michele Jr De Candia <michele.decandia@valueteam.com> | 2009-07-28 16:33:03 +0200 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-07-28 16:33:03 +0200 |
commit | 96f699ad09c8b3c55cd229506a9add0047838e3e (patch) | |
tree | e7534331262fd5dc17c30d2f27b9440e6d58313b /drivers/ide/pdc202xx_new.c | |
parent | 4733fd328f14280900435d9dbae1487d110a4d56 (diff) |
i2c/tsl2550: Fix lux value in dark environment
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 <michele.decandia@valueteam.com>
Acked-by: Rodolfo Giometti <giometti@linux.it>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/ide/pdc202xx_new.c')
0 files changed, 0 insertions, 0 deletions