From: Liu Ying Date: Tue, 8 Mar 2011 06:59:21 +0000 (+0800) Subject: ENGR00140391 ISL29023:Keep int thresholds in interrupt handler X-Git-Tag: v3.0.35-fsl~2444 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5b66304ce25f5d1f8c79df2bd81830d49fc5b5e;p=karo-tx-linux.git ENGR00140391 ISL29023:Keep int thresholds in interrupt handler We used to set the interrupt thresholds to the measure range of the light sensor in the interrupt handler, this potentially makes user poll on the input event and never be waken up. This patch keeps the interrupt thresholds in the interrupt handler and is tested on MX53 SMD. Signed-off-by: Liu Ying --- diff --git a/drivers/input/misc/isl29023.c b/drivers/input/misc/isl29023.c index 7c1dd7f7efa5..8ea0debc57c1 100755 --- a/drivers/input/misc/isl29023.c +++ b/drivers/input/misc/isl29023.c @@ -826,14 +826,6 @@ static void isl29023_work(struct work_struct *work) /* Clear interrupt flag */ isl29023_set_int_flag(client, 0); - /* - * Max threshold to avoid multiple interrupts. - * Let the user to reprogramme the interrupt - * thresholds. - */ - isl29023_set_int_ht(client, 0xffff); - isl29023_set_int_lt(client, 0x0); - data->mode_before_interrupt = isl29023_get_mode(client); lux = isl29023_get_adc_value(client);