mbox series

[0/1] iio: imu: bmi323: Use the new shared iio_read_acpi_mount_matrix() helper

Message ID 20240523174736.16692-1-benato.denis96@gmail.com (mailing list archive)
Headers show
Series iio: imu: bmi323: Use the new shared iio_read_acpi_mount_matrix() helper | expand

Message

Denis Benato May 23, 2024, 5:47 p.m. UTC
The default mount matrix (identity matrix) for the Asus RC71L is wrong: the correct one is defined in the ACPI ROTM object.

The introduction of the iio_read_acpi_mount_matrix() helper was originally meant to share a good implementation among two devices:
one of those is the bmc150 device. As pointed out previously the bmi323 is defined in the same way as the bmc150 on the ACPI,
where ROTM can also be found.

I have confirmed this patch loads the correct mount matrix on my testing device.

Denis Benato (1):
  iio: imu: bmi323: Use iio read_acpi_mount_matrix() helper

 drivers/iio/imu/bmi323/bmi323_core.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)