Commit f4c1848b authored by Federico Vaga's avatar Federico Vaga

drv: set the pattern and then calibrate

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 4c2b3167
......@@ -203,9 +203,9 @@ static int fa_data_pattern_adc_write(struct fa_dev *fa, const char __user *buf,
err = kstrtou16(buf_l + 2, 0, &pattern);
if (err)
return err;
err = fa_adc_data_pattern_set(fa, pattern & 0xFFF, 1);
fa_calib_exit(fa);
pattern &= 0xFFF;
return fa_adc_data_pattern_set(fa, pattern, 1);
return err;
} else {
return -EINVAL;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment