iio:temperature:mlx90632: Reduce number of equal calulcations
authorCrt Mori <cmo@melexis.com>
Tue, 18 Aug 2020 21:37:33 +0000 (23:37 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:52 +0000 (19:40 +0100)
commitb99095e53a1c01ff8de0928058792711efc00f3c
treeb3b2a330a2458c370a3ed519700b71017e89978d
parent7e604a3d212ca006802f485f7bac9712a5ddd805
iio:temperature:mlx90632: Reduce number of equal calulcations

TAdut4 was calculated each iteration although it did not change. In light
of near future additions of the Extended range DSP calculations, this
function refactoring will help reduce unrelated changes in that series as
well as reduce the number of new functions needed.

Signed-off-by: Crt Mori <cmo@melexis.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200818213737.140613-2-cmo@melexis.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/temperature/mlx90632.c