mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
iio: adc: rockchip_saradc: support raw read in test mode
Change-Id: Ic19240bfdc05865e395c91b83fdadd8cfb4d8eac Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -151,7 +151,10 @@ static int rockchip_saradc_read_v2(struct rockchip_saradc *info)
|
||||
writel_relaxed(0x1, info->regs + SARADC2_END_INT_ST);
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SARADC_TEST_CHN
|
||||
channel = info->test_chn;
|
||||
if (info->test)
|
||||
channel = info->test_chn;
|
||||
else
|
||||
channel = info->last_chan->channel;
|
||||
#else
|
||||
channel = info->last_chan->channel;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user