Author: fmueller
Date: Thu Jun 10 05:18:05 2010
New Revision: 8852

URL: http://svn.slimdevices.com/jive?rev=8852&view=rev
Log:
Bug: 16280 
Description: Fix ambient light calculation for channel0 = 0 and channel1 > 0 to 
report lux = 0. 

Modified:
    7.6/trunk/squeezeos/src/imx35/patches/logitech/fab4-bsp.patch

Modified: 7.6/trunk/squeezeos/src/imx35/patches/logitech/fab4-bsp.patch
URL: 
http://svn.slimdevices.com/jive/7.6/trunk/squeezeos/src/imx35/patches/logitech/fab4-bsp.patch?rev=8852&r1=8851&r2=8852&view=diff
==============================================================================
--- 7.6/trunk/squeezeos/src/imx35/patches/logitech/fab4-bsp.patch (original)
+++ 7.6/trunk/squeezeos/src/imx35/patches/logitech/fab4-bsp.patch Thu Jun 10 
05:18:05 2010
@@ -2,7 +2,7 @@
  drivers/i2c/chips/Kconfig            |   19 
  drivers/i2c/chips/Makefile           |    2 
  drivers/i2c/chips/clearpad.c         |  307 ++++++++++++
- drivers/i2c/chips/tsl2569.c          |  804 +++++++++++++++++++++++++++++++
+ drivers/i2c/chips/tsl2569.c          |  807 +++++++++++++++++++++++++++++++
  drivers/input/touchscreen/Kconfig    |    3 
  drivers/input/touchscreen/tsc2007.c  |   11 
  drivers/mxc/Kconfig                  |    1 
@@ -384,7 +384,7 @@
 ===================================================================
 --- /dev/null  1970-01-01 00:00:00.000000000 +0000
 +++ linux-2.6.26/drivers/i2c/chips/tsl2569.c   2009-04-29 13:54:00.000000000 
+0100
-@@ -0,0 +1,804 @@
+@@ -0,0 +1,807 @@
 +/*
 + *  tsl2569.c - Linux kernel modules for ambient light sensor
 + *
@@ -534,6 +534,9 @@
 +      ch1 = tsl2569_get_adc_value(client, TSL2569_REG_ADC1);
 +      if (ch1 < 0)
 +              return ch1;
++
++      if (ch0 == 0)
++              return 0;
 +
 +      /*
 +       * Calculating the Lux Value using the current parameters

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to