diff options
author | Andreas Blaesius <skate4life@gmx.de> | 2016-09-11 12:24:55 +0200 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-09-18 16:56:07 +0200 |
commit | e217b609c2715be6942c593d23290af211748633 (patch) | |
tree | ca2fedfd69c07173de0161fb331f8ac9e7bc0d18 | |
parent | c39b2a10a65dad5eb2f4567196a77cc0ecd22a82 (diff) | |
download | kernel_samsung_espresso10-e217b609c2715be6942c593d23290af211748633.zip kernel_samsung_espresso10-e217b609c2715be6942c593d23290af211748633.tar.gz kernel_samsung_espresso10-e217b609c2715be6942c593d23290af211748633.tar.bz2 |
espresso: sensor: remove system_rev check on gp2a_light_adc_value
- fixes adaptive brightness on p3100
Change-Id: I4d44d1a2cc2e14dc4fc3a9d078f957aff265c41a
-rw-r--r-- | arch/arm/mach-omap2/board-espresso-sensors.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-espresso-sensors.c b/arch/arm/mach-omap2/board-espresso-sensors.c index 2cd36ce..b9d47aa 100644 --- a/arch/arm/mach-omap2/board-espresso-sensors.c +++ b/arch/arm/mach-omap2/board-espresso-sensors.c @@ -63,10 +63,7 @@ static struct bh1721fvc_platform_data bh1721fvc_pdata = { static int gp2a_light_adc_value(void) { - if (system_rev >= 6) - return twl6030_get_gpadc_conversion(GP2A_LIGHT_ADC_CHANNEL) / 4; - else - return twl6030_get_gpadc_conversion(GP2A_LIGHT_ADC_CHANNEL); + return twl6030_get_gpadc_conversion(GP2A_LIGHT_ADC_CHANNEL); } static void gp2a_power(bool on) |