mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-14 07:44:21 +08:00
02eae0bb95
The ACPI "ROTM" rotation matrix parsing code atm is already duplicated between bmc150-accel-core.c and kxcjk-1013.c and a third user of this is coming. Add an iio_read_acpi_mount_matrix() helper function for this. The 2 existing copies of the code are identical, except that the kxcjk-1013.c has slightly better error logging. To new helper is a 1:1 copy of the kxcjk-1013.c version, the only change is the addition of a "char *acpi_method" parameter since some bmc150 dual-accel setups (360° hinges with 1 accel in kbd/base + 1 in display) declare both accels in a single ACPI device with 2 different method names for the 2 matrices. This new acpi_method parameter is not "const char *" because the pathname parameter to acpi_evaluate_object() is not const. The 2 existing copies of this function will be removed in further patches in this series. Acked-by: Rafael J. Wysocki <rafael@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20240425125754.76010-2-hdegoede@redhat.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Makefile for the industrial I/O core.
|
|
#
|
|
|
|
obj-$(CONFIG_IIO) += industrialio.o
|
|
industrialio-y := industrialio-core.o industrialio-event.o inkern.o
|
|
industrialio-$(CONFIG_IIO_BUFFER) += industrialio-buffer.o
|
|
industrialio-$(CONFIG_IIO_TRIGGER) += industrialio-trigger.o
|
|
industrialio-$(CONFIG_ACPI) += industrialio-acpi.o
|
|
|
|
obj-$(CONFIG_IIO_CONFIGFS) += industrialio-configfs.o
|
|
obj-$(CONFIG_IIO_GTS_HELPER) += industrialio-gts-helper.o
|
|
obj-$(CONFIG_IIO_SW_DEVICE) += industrialio-sw-device.o
|
|
obj-$(CONFIG_IIO_SW_TRIGGER) += industrialio-sw-trigger.o
|
|
obj-$(CONFIG_IIO_TRIGGERED_EVENT) += industrialio-triggered-event.o
|
|
obj-$(CONFIG_IIO_BACKEND) += industrialio-backend.o
|
|
|
|
obj-y += accel/
|
|
obj-y += adc/
|
|
obj-y += addac/
|
|
obj-y += afe/
|
|
obj-y += amplifiers/
|
|
obj-y += buffer/
|
|
obj-y += cdc/
|
|
obj-y += chemical/
|
|
obj-y += common/
|
|
obj-y += dac/
|
|
obj-y += dummy/
|
|
obj-y += gyro/
|
|
obj-y += filter/
|
|
obj-y += frequency/
|
|
obj-y += health/
|
|
obj-y += humidity/
|
|
obj-y += imu/
|
|
obj-y += light/
|
|
obj-y += magnetometer/
|
|
obj-y += multiplexer/
|
|
obj-y += orientation/
|
|
obj-y += position/
|
|
obj-y += potentiometer/
|
|
obj-y += potentiostat/
|
|
obj-y += pressure/
|
|
obj-y += proximity/
|
|
obj-y += resolver/
|
|
obj-y += temperature/
|
|
obj-y += test/
|
|
obj-y += trigger/
|