Re: [PATCH 1/9] iio: imu: st_lsm6dsx: dynamically initialize iio_chan_spec data

From: Francesco Lavra

Date: Fri Oct 31 2025 - 04:26:26 EST


[missed this one]

On Thu, 2025-10-30 at 17:42 +0100, Lorenzo Bianconi wrote:
>
> > +       chan->ext_info = st_lsm6dsx_ext_info;
> > +       if (id == ST_LSM6DSX_ID_ACC) {
> > +               if (hw->settings->event_settings.wakeup_reg.addr) {
>
>         if (id == ST_LSM6DSX_ID_ACC &&
>             hw->settings->event_settings.wakeup_reg.addr) {
>             ...
>         }

In patch 4/9, the inner conditional will be replaced by more generic code,
so we would revert to if (id == ST_LSM6DSX_ID_ACC) [...]

Attachment: signature.asc
Description: This is a digitally signed message part