mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 03:50:24 +09:00
iio: adc: rockchip_saradc: fix test logic
Change-Id: I2bba10bed0f5ad3b49e4a09f28ad90f3acb0d444 Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
@@ -544,7 +544,7 @@ static ssize_t saradc_test_chn_store(struct device *dev,
|
||||
return size;
|
||||
}
|
||||
|
||||
if (!info->test && val < SARADC_CTRL_CHN_MASK) {
|
||||
if (!info->test && val <= SARADC_CTRL_CHN_MASK) {
|
||||
info->test = true;
|
||||
info->chn = val;
|
||||
mod_delayed_work(info->wq, &info->work, msecs_to_jiffies(100));
|
||||
|
||||
Reference in New Issue
Block a user