diff options
author | Chris Manton <cmanton@google.com> | 2013-07-23 09:30:33 -0700 |
---|---|---|
committer | Chris Manton <cmanton@google.com> | 2013-07-23 15:29:35 -0700 |
commit | 556097dd9e879583e6f8ef8b9daad2e45ffed503 (patch) | |
tree | 25036c4cb9e282a6631ec802c3171c5c3bcfe81b | |
parent | ab8bf5ef81488caed9bbcc2d72b9912ff683b845 (diff) | |
download | omap-omapzoom-556097dd9e879583e6f8ef8b9daad2e45ffed503.tar.gz |
Remove spammy ALS logging
Experiment is complete.
Retries on zero don't change the low value.
Filtered values are proportional to raw values.
Change-Id: Icc985a44a05c37e6fca660c7cb91d3e7f5ccd1a9
-rw-r--r-- | drivers/input/misc/ltr506als.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/input/misc/ltr506als.c b/drivers/input/misc/ltr506als.c index 1db6679141a0..072aaceff520 100644 --- a/drivers/input/misc/ltr506als.c +++ b/drivers/input/misc/ltr506als.c @@ -459,27 +459,6 @@ static void report_als_input_event(struct ltr506_data *ltr506) adc_value = read_adc_value(ltr506); } -#define ALS_ADC_DEBUG -#ifdef ALS_ADC_DEBUG - if (1) { - // If adc_value is read as zero, re-read to ensure - // that it is in fact zero and not an artifact of a a misread to - // the device. - if (adc_value == 0) { - adc_value = read_adc_value(ltr506); - dev_info(<r506->i2c_client->dev, "%s Re-reading zero adc value new adc_value:%d\n", - __func__, adc_value); - } - - // Read the raw channel values to see how the value has - // changed. - uint32_t adc_value_ch1 = read_als_adc_ch1_value(ltr506); - uint32_t adc_value_ch2 = read_als_adc_ch2_value(ltr506); - dev_info(<r506->i2c_client->dev, "%s adc_value:%d ch1:%d ch2:%d\n", - __func__, adc_value, adc_value_ch1, adc_value_ch2); - } -#endif - input_report_abs(ltr506->als_input_dev, ABS_MISC, adc_value); input_sync(ltr506->als_input_dev); |