[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VehpQdxFDXE8L0TeaOxHBTHNorOZ95rL48kQAiViAJ_zg@mail.gmail.com>
Date: Fri, 2 May 2025 17:19:44 +0300
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Sean Nyekjaer <sean@...nix.com>
Cc: Jonathan Cameron <jic23@...nel.org>, Marcelo Schmitt <marcelo.schmitt1@...il.com>,
Lars-Peter Clausen <lars@...afoo.de>, Jonathan Cameron <Jonathan.Cameron@...wei.com>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH v2 1/2] iio: accel: fxls8962af: Fix temperature calculation
On Fri, May 2, 2025 at 9:15 AM Sean Nyekjaer <sean@...nix.com> 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
Powered by blists - more mailing lists