Re: [PATCH v2 1/2] iio: accel: fxls8962af: Fix temperature calculation
From: Andy Shevchenko
Date: Fri May 02 2025 - 10:20:31 EST
On Fri, May 2, 2025 at 9:15 AM Sean Nyekjaer <sean@xxxxxxxxxx> wrote:
>
> According to spec temperature should be returned in milli degrees Celsius.
> Add in_temp_scale to calculate from Celsius to milli Celsius.
...
> +/* Raw temp channel scale */
> +#define FXLS8962AF_TEMP_SCALE 1000
Wouldn't constants from units.h be helpful here?
> #define FXLS8962AF_AUTO_SUSPEND_DELAY_MS 2000
(2 * MSEC_PER_SEC)
This gives immediately that we want 2 seconds of delay.
--
With Best Regards,
Andy Shevchenko