lkml.org 
[lkml]   [2013]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 02/19] bh1770glc: different glass attenuation parameters
Date
From: Onur Atilla <oatilla@gmail.com>

The Ambient Light Sensor (ALS) glass attenuation parameter should
be configurable and two new parameters are introduced:
als_scf_BH1770 and als_scf_SFH7770.

Signed-off-by: Onur Atilla <oatilla@gmail.com>
Signed-off-by: Andi Shyti <andi@etezian.org>
---
include/linux/i2c/bh1770glc.h | 2 ++
1 file changed, 2 insertions(+)

diff --git a/include/linux/i2c/bh1770glc.h b/include/linux/i2c/bh1770glc.h
index 8b5e2df..a08060a 100644
--- a/include/linux/i2c/bh1770glc.h
+++ b/include/linux/i2c/bh1770glc.h
@@ -47,6 +47,8 @@ struct bh1770_platform_data {
__u8 led_def_curr;
#define BH1770_NEUTRAL_GA 16384 /* 16384 / 16384 = 1 */
__u32 glass_attenuation;
+ __u32 als_scf_BH1770;
+ __u32 als_scf_SFH7770;
int (*setup_resources)(void);
int (*release_resources)(void);
};
--
1.7.10.4


\
 
 \ /
  Last update: 2013-06-13 21:01    [W:0.117 / U:0.280 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site