Since the second patch is dependent on the first and was still not merged, I have decided to send them together. First patch just makes second one more readable as it splits out the repeated calculation and that enables the second patch to tweak the variable to the new condition. Crt Mori (2): iio:temperature:mlx90632: Reduce number of equal calulcations iio:temperature:mlx90632: Adding extended calibration option drivers/iio/temperature/mlx90632.c | 235 +++++++++++++++++++++++++++-- 1 file changed, 225 insertions(+), 10 deletions(-) -- 2.25.1