mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
iio: adc: rockchip_saradc: don't break rockchip_saradc_isr if in test mode
Change-Id: Ia33235887c38305879a52506f1d3ad0466609669 Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -242,10 +242,11 @@ static irqreturn_t rockchip_saradc_isr(int irq, void *dev_id)
|
||||
unsigned long flags;
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_ROCKCHIP_SARADC_TEST_CHN
|
||||
/* Nothing need to do if info->last_chan not ready */
|
||||
if (!info->last_chan)
|
||||
return IRQ_HANDLED;
|
||||
|
||||
#endif
|
||||
/* Read value */
|
||||
info->last_val = rockchip_saradc_read(info);
|
||||
#ifndef CONFIG_ROCKCHIP_SARADC_TEST_CHN
|
||||
|
||||
Reference in New Issue
Block a user