Re: [PATCH v14 09/11] iio: afe: rescale: add temperature transducers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 8, 2022 at 4:04 AM Liam Beguin <liambeguin@xxxxxxxxx> wrote:
>
> A temperature transducer is a device that converts a thermal quantity
> into any other physical quantity. This patch adds support for
> temperature to voltage (like the LTC2997) and temperature to current
> (like the AD590) linear transducers.
> In both cases these are assumed to be connected to a voltage ADC.

...

> +       rescale->offset = div_s64((s64)offset * rescale->denominator,
> +                                 rescale->numerator);

Wonder if we can use mult_frac() here. Would it require 64-bit division?

-- 
With Best Regards,
Andy Shevchenko



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux