On 4/17/24 6:46 PM, Hans de Goede wrote: > Hi All, > > Here is a patch series to refactor the ACPI ROTM orientation matrix > handling in kxcjk-1013 + bmc150-accel to share the code instead of > having 2 copies and then also use the shared implementation in > the mxc4005 driver since some MXC6655 ACPI firmware nodes also > include this. > > Note the mxc4005 support is untested, I will ask the report of: > https://bugzilla.kernel.org/show_bug.cgi?id=218578 to test. The ROTM support has been tested on a tablet with a MXC6655 now and has been confirmed to work. Regards, Hans > Hans de Goede (4): > iio: accel: kxcjk-1013: Simplify ACPI ROTM mount matrix retreival > iio: accel: kxcjk-1013: Move ACPI ROTM parsing to new acpi-helpers.h > iio: bmc150-accel-core: Use acpi_read_mount_matrix() helper > iio: accel: mxc4005: Read orientation matrix from ACPI ROTM method > > drivers/iio/accel/acpi-helpers.h | 76 +++++++++++++++++++++++++ > drivers/iio/accel/bmc150-accel-core.c | 45 +-------------- > drivers/iio/accel/kxcjk-1013.c | 82 +-------------------------- > drivers/iio/accel/mxc4005.c | 24 ++++++++ > 4 files changed, 106 insertions(+), 121 deletions(-) > create mode 100644 drivers/iio/accel/acpi-helpers.h >