[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkdaXQ+qgXsZ=nUzz+MNzTWsK32YEpJH3FT5WzDXVS=hd7A@mail.gmail.com>
Date: Wed, 26 Jun 2024 12:39:28 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: sre@...nel.org, jic23@...nel.org, linux-pm@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 2/3] power: supply: ab8500: Use iio_read_channel_processed_scale()
On Sat, Jun 22, 2024 at 9:05 AM Christophe JAILLET
<christophe.jaillet@...adoo.fr> wrote:
> Instead of rescaling current or voltage channels after the fact, use the
> dedicated scaling API. This should reduce any inaccuracies resulting from
> the scaling.
>
> This is also slightly more efficient as it saves a function call and a
> multiplication.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Very nice!
Reviewed-by: Linus Walleij <linus.walleij@...aro.org>
Yours,
Linus Walleij
Powered by blists - more mailing lists