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 <Ying.Liu@freescale.com>
/* 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);