Searched refs:out_range (Results 1 – 1 of 1) sorted by relevance
122 int16_t out_range = axis_cfg->out_max - axis_cfg->out_min; in analog_axis_out_deadzone() local138 return DIV_ROUND_CLOSEST((raw_val - in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_deadzone()150 int16_t out_range = axis_cfg->out_max - axis_cfg->out_min; in analog_axis_out_linear() local152 return DIV_ROUND_CLOSEST((raw_val - cal->in_min) * out_range, in_range) + axis_cfg->out_min; in analog_axis_out_linear()