Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: imu: lsm6dsx: Fix mount matrix retrieval

The function lsm6dsx_get_acpi_mount_matrix should return an error when ACPI
support is not enabled to allow executing iio_read_mount_matrix in the
probe function.

Fixes: dc3d25f22b88 ("iio: imu: lsm6dsx: Add ACPI mount matrix retrieval")
Signed-off-by: Alejandro Tafalla <atafalla@dnyon.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/20230714153132.27265-1-atafalla@dnyon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Alejandro Tafalla and committed by
Jonathan Cameron
6811694e 09738ccb

+1 -1
+1 -1
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx_core.c
··· 2687 2687 static int lsm6dsx_get_acpi_mount_matrix(struct device *dev, 2688 2688 struct iio_mount_matrix *orientation) 2689 2689 { 2690 - return false; 2690 + return -EOPNOTSUPP; 2691 2691 } 2692 2692 2693 2693 #endif