Commit 6ae2773a authored by Federico Vaga's avatar Federico Vaga

drv: fix double calibration config

In some conditions the driver was apply the configuration value two
times. There is no need for this
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 8e53d9d4
......@@ -391,7 +391,6 @@ static void fa_calib_write(struct fa_dev *fa, struct fa_calib *calib)
} else {
memcpy(&fa->calib, calib, sizeof(*calib));
}
fa_calib_config(fa);
}
static ssize_t fa_write_eeprom(struct file *file, struct kobject *kobj,
......@@ -406,6 +405,7 @@ static ssize_t fa_write_eeprom(struct file *file, struct kobject *kobj,
return -EINVAL;
fa_calib_write(fa, calib);
fa_calib_config(fa);
return count;
}
......
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