[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251018201747.3493415e@jic23-huawei>
Date: Sat, 18 Oct 2025 20:17:47 +0100
From: Jonathan Cameron <jic23@...nel.org>
To: Lorenzo Bianconi <lorenzo@...nel.org>
Cc: Francesco Lavra <flavra@...libre.com>, David Lechner
<dlechner@...libre.com>, Nuno Sá <nuno.sa@...log.com>, Andy
Shevchenko <andy@...nel.org>, linux-iio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iio: imu: st_lsm6dsx: fix array size for
st_lsm6dsx_settings fields
On Sat, 18 Oct 2025 11:33:39 +0200
Lorenzo Bianconi <lorenzo@...nel.org> wrote:
> > The `decimator` and `batch` fields of struct st_lsm6dsx_settings
> > are arrays indexed by sensor type, not by sensor hardware
> > identifier; moreover, the `batch` field is only used for the
> > accelerometer and gyroscope.
> > Change the array size for `decimator` from ST_LSM6DSX_MAX_ID to
> > ST_LSM6DSX_ID_MAX, and change the array size for `batch` from
> > ST_LSM6DSX_MAX_ID to 2; move the enum st_lsm6dsx_sensor_id
> > definition so that the ST_LSM6DSX_ID_MAX value is usable within
> > the struct st_lsm6dsx_settings definition.
> >
> > Fixes: 801a6e0af0c6c ("iio: imu: st_lsm6dsx: add support to LSM6DSO")
> > Signed-off-by: Francesco Lavra <flavra@...libre.com>
>
> Acked-by: Lorenzo Bianconi <lorenzo@...nel.org>
>
Applied to the fixes-togreg branch of iio.git and marked for stable.
thanks,
Jonathan
Powered by blists - more mailing lists