From: Onur Atilla <oati...@gmail.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 <oati...@gmail.com> Signed-off-by: Andi Shyti <a...@etezian.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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/