mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02: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:
parent
8b2a823c47
commit
2d3757bf81
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user