[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <772b61e4-eebf-46e5-b83c-76e947d33043@baylibre.com>
Date: Thu, 17 Jul 2025 17:49:29 -0500
From: David Lechner <dlechner@...libre.com>
To: Rodrigo Gobbi <rodrigo.gobbi.7@...il.com>, jic23@...nel.org,
nuno.sa@...log.com, andy@...nel.org
Cc: ~lkcamp/patches@...ts.sr.ht, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3] iio: adc: spear_adc: mask SPEAR_ADC_STATUS channel and
avg sample before setting register
On 7/17/25 5:13 PM, Rodrigo Gobbi wrote:
> avg sample info is a bit field coded inside the following
> bits: 5,6,7 and 8 of a device status register.
>
> channel num info the same, but over bits: 1, 2 and 3.
>
> mask both values in order to avoid touching other register bits,
> since the first info (avg sample), came from dt.
>
> Signed-off-by: Rodrigo Gobbi <rodrigo.gobbi.7@...il.com>
> ---
Reviewed-by: David Lechner <dlechner@...libre.com>
Powered by blists - more mailing lists