iio: adc: rockchip_saradc: fix test logic

Change-Id: I2bba10bed0f5ad3b49e4a09f28ad90f3acb0d444
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue 2023-04-11 10:13:51 +08:00
parent 8b2a823c47
commit 2d3757bf81
1 changed files with 1 additions and 1 deletions

View File

@ -544,7 +544,7 @@ static ssize_t saradc_test_chn_store(struct device *dev,
return size; return size;
} }
if (!info->test && val < SARADC_CTRL_CHN_MASK) { if (!info->test && val <= SARADC_CTRL_CHN_MASK) {
info->test = true; info->test = true;
info->chn = val; info->chn = val;
mod_delayed_work(info->wq, &info->work, msecs_to_jiffies(100)); mod_delayed_work(info->wq, &info->work, msecs_to_jiffies(100));