Message ID | 1673874434-30750-1-git-send-email-Philippe.DeMuyter@macq.eu (mailing list archive) |
---|---|
Headers | show |
Series | iio: imu: st_lsm6dsx: add 'mount_matrix' sysfs entry to gyro channel. | expand |
> From: Philippe De Muyter <phdm@macqel.be> > > Signed-off-by: Philippe De Muyter <phdm@macqel.be> > --- > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Acked-by: Lorenzo Bianconi <lorenzo@kernel.org> > diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h > index 5b6f195748fc..499fcf8875b4 100644 > --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h > +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h > @@ -93,7 +93,7 @@ enum st_lsm6dsx_hw_id { > .endianness = IIO_LE, \ > }, \ > .event_spec = &st_lsm6dsx_event, \ > - .ext_info = st_lsm6dsx_accel_ext_info, \ > + .ext_info = st_lsm6dsx_ext_info, \ > .num_event_specs = 1, \ > } > > @@ -113,6 +113,7 @@ enum st_lsm6dsx_hw_id { > .storagebits = 16, \ > .endianness = IIO_LE, \ > }, \ > + .ext_info = st_lsm6dsx_ext_info, \ > } > > struct st_lsm6dsx_reg { > @@ -528,7 +529,7 @@ st_lsm6dsx_device_set_enable(struct st_lsm6dsx_sensor *sensor, bool enable) > } > > static const > -struct iio_chan_spec_ext_info __maybe_unused st_lsm6dsx_accel_ext_info[] = { > +struct iio_chan_spec_ext_info __maybe_unused st_lsm6dsx_ext_info[] = { > IIO_MOUNT_MATRIX(IIO_SHARED_BY_ALL, st_lsm6dsx_get_mount_matrix), > { } > }; > -- > 2.31.1 >
On Mon, 16 Jan 2023 14:07:12 +0100 Philippe De Muyter <Philippe.DeMuyter@macq.eu> wrote: > From: Philippe De Muyter <phdm@macqel.be> > > > A simple patch to add the missing 'mount_matrix' sysfs entry for the gyro > channel of the st_lsm6dsx 6-axes devices. > > v2: use 'shub' in the renaming Series applied to the togreg branch of iio.git and initially pushed out as testing for 0-day to work it's magic. Thanks, Jonathan > > Philippe De Muyter (2): > iio: imu: st_lsm6dsx: fix naming of 'struct iio_info' in > st_lsm6dsx_shub.c. > iio: imu: st_lsm6dsx: add 'mount_matrix' sysfs entry to gyro channel. > > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 5 +++-- > drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c | 12 ++++++------ > 2 files changed, 9 insertions(+), 8 deletions(-) >
From: Philippe De Muyter <phdm@macqel.be> A simple patch to add the missing 'mount_matrix' sysfs entry for the gyro channel of the st_lsm6dsx 6-axes devices. v2: use 'shub' in the renaming Philippe De Muyter (2): iio: imu: st_lsm6dsx: fix naming of 'struct iio_info' in st_lsm6dsx_shub.c. iio: imu: st_lsm6dsx: add 'mount_matrix' sysfs entry to gyro channel. drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 5 +++-- drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_shub.c | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-)