[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <811ab0e9e602fd48bd5bf61e64451674123b66c9.1371145891.git.andi@etezian.org>
Date: Thu, 13 Jun 2013 20:20:48 +0200
From: Andi Shyti <andi@...zian.org>
To: arnd@...db.de, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, pc@...f.org, oatilla@...il.com,
andi@...zian.org
Subject: [PATCH 14/19] bh1770glc: Modified the neutral glass attenuation value
From: Onur Atilla <oatilla@...il.com>
Changed the neutral glass attenuation value from 16384
to 8192. This is for adaptation to the new scaling factor.
Signed-off-by: Onur Atilla <oatilla@...il.com>
Signed-off-by: Andi Shyti <andi@...zian.org>
---
include/linux/i2c/bh1770glc.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/i2c/bh1770glc.h b/include/linux/i2c/bh1770glc.h
index 3efbae4..aaf0906 100644
--- a/include/linux/i2c/bh1770glc.h
+++ b/include/linux/i2c/bh1770glc.h
@@ -32,7 +32,7 @@
#define BH1770_LED_100mA 4
#define BH1770_LED_150mA 5
#define BH1770_LED_200mA 6
-#define BH1770_NEUTRAL_GA 16384 /* 16384 / 16384 = 1 */
+#define BH1770_NEUTRAL_GA 8192 /* 8192 / 8192 = 1 */
/**
* struct bh1770_platform_data - platform data for bh1770glc driver
@@ -41,7 +41,7 @@
* @setup_resources: Call back for interrupt line setup function
* @release_resources: Call back for interrupte line release function
*
- * Example of glass attenuation: 16384 * 385 / 100 means attenuation factor
+ * Example of glass attenuation: 8192 * 385 / 100 means attenuation factor
* of 3.85. i.e. light_above_sensor = light_above_cover_window / 3.85
*/
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists