[OpenWrt-Devel] [PATCH] kernel: iio: fix st_accel_{i2c, spi} driver
Tim Harvey
tharvey at gateworks.com
Thu May 28 11:02:01 EDT 2020
Add missing kernel module and rename driver
Signed-off-by: Tim Harvey <tharvey at gateworks.com>
---
package/kernel/linux/modules/iio.mk | 46 ++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 21 deletions(-)
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index 17ffdc3..b52ec8c 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -328,20 +328,40 @@ endef
$(eval $(call KernelPackage,iio-st_accel))
-define KernelPackage/iio-st_sensors-i2c
+define KernelPackage/iio-st_accel-i2c
SUBMENU:=$(IIO_MENU)
TITLE:=STMicroelectronics accelerometer 3-Axis Driver (I2C)
DEPENDS:=+kmod-iio-st_accel +kmod-i2c-core +kmod-regmap-i2c
KCONFIG:= CONFIG_IIO_ST_ACCEL_I2C_3AXIS
- FILES:=$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_i2c.ko
- AUTOLOAD:=$(call AutoLoad,56,st_sensors_i2c)
+ FILES:= \
+ $(LINUX_DIR)/drivers/iio/accel/st_accel_i2c.ko \
+ $(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_i2c.ko
+ AUTOLOAD:=$(call AutoLoad,56,st_accel_i2c)
endef
-define KernelPackage/iio-st_sensors-i2c/description
+define KernelPackage/iio-st_accel-i2c/description
This package adds support for STMicroelectronics I2C based accelerometers
endef
-$(eval $(call KernelPackage,iio-st_sensors-i2c))
+$(eval $(call KernelPackage,iio-st_accel-i2c))
+
+
+define KernelPackage/iio-st_accel-spi
+ SUBMENU:=$(IIO_MENU)
+ TITLE:=STMicroelectronics accelerometer 3-Axis Driver (SPI)
+ DEPENDS:=+kmod-iio-st_accel +kmod-regmap-spi
+ KCONFIG:= CONFIG_IIO_ST_ACCEL_SPI_3AXIS
+ FILES:= \
+ $(LINUX_DIR)/drivers/iio/accel/st_accel_spi.ko \
+ $(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_spi.ko
+ AUTOLOAD:=$(call AutoLoad,56,st_accel_spi)
+endef
+
+define KernelPackage/iio-st_accel-spi/description
+ This package adds support for STMicroelectronics SPI based accelerometers
+endef
+
+$(eval $(call KernelPackage,iio-st_accel-spi))
define KernelPackage/iio-sps30
@@ -360,22 +380,6 @@ endef
$(eval $(call KernelPackage,iio-sps30))
-define KernelPackage/iio-st_sensors-spi
- SUBMENU:=$(IIO_MENU)
- TITLE:=STMicroelectronics accelerometer 3-Axis Driver (SPI)
- DEPENDS:=+kmod-iio-st_accel +kmod-regmap-spi
- KCONFIG:= CONFIG_IIO_ST_ACCEL_SPI_3AXIS
- FILES:=$(LINUX_DIR)/drivers/iio/common/st_sensors/st_sensors_spi.ko
- AUTOLOAD:=$(call AutoLoad,56,st_sensors_spi)
-endef
-
-define KernelPackage/iio-st_sensors-spi/description
- This package adds support for STMicroelectronics SPI based accelerometers
-endef
-
-$(eval $(call KernelPackage,iio-st_sensors-spi))
-
-
define KernelPackage/iio-tsl4531
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-i2c-core +kmod-iio-core
--
2.7.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list