Commit 74de7762 authored by Federico Vaga's avatar Federico Vaga

drv: fix again the calibration temperature unit

Actually it is true that the ADC PTS uses centi-celsious as
temperature unit. Sad but true.
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 193aa822
......@@ -21,13 +21,13 @@ module_param_named(calib_s, fa_calib_period_s, int, 0444);
static const struct fa_calib_stanza fa_identity_calib = {
.offset = { 0, },
.gain = {0x8000, 0x8000, 0x8000, 0x8000},
.temperature = 50 * 1000, /* 50 celsius degrees */
.temperature = 50 * 100, /* 50 celsius degrees */
};
/* Max difference from identity thing */
#define FA_CALIB_MAX_DELTA_OFFSET 0x1000
#define FA_CALIB_MAX_DELTA_GAIN 0x1000
#define FA_CALIB_MAX_DELTA_TEMP (40 * 1000) /* 10-90 celsius */
#define FA_CALIB_MAX_DELTA_TEMP (40 * 100) /* 10-90 celsius */
static bool fa_calib_is_busy(struct fa_dev *fa)
{
......
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