aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2022-08-07 15:22:42 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2022-08-10 21:36:17 +0200
commitc281edb6ac1ce19968bd912e9291144a1c4d2183 (patch)
tree1cdfdbe66b482b269d55ef40a5d7d34b6a523882 /package/kernel/linux
parentdb55dea5fc047190af188f07018e99b0c7a4bdde (diff)
downloadupstream-c281edb6ac1ce19968bd912e9291144a1c4d2183.tar.gz
upstream-c281edb6ac1ce19968bd912e9291144a1c4d2183.tar.bz2
upstream-c281edb6ac1ce19968bd912e9291144a1c4d2183.zip
kernel: kmod-iio-sps30: Add I2C driver
The sps30.ko driver was split into a main sps30.ko driver and a sps30_i2c.ko driver for the I2C interface with kernel 5.14. Add the sps30_i2c.ko module to the package too. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/iio.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk
index 6a2e040377..a4b2ee93e9 100644
--- a/package/kernel/linux/modules/iio.mk
+++ b/package/kernel/linux/modules/iio.mk
@@ -431,9 +431,13 @@ define KernelPackage/iio-sps30
SUBMENU:=$(IIO_MENU)
DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-industrialio-triggered-buffer +kmod-lib-crc8
TITLE:=Sensirion SPS30 particulate matter sensor
- KCONFIG:=CONFIG_SPS30
- FILES:=$(LINUX_DIR)/drivers/iio/chemical/sps30.ko
- AUTOLOAD:=$(call AutoProbe,sps30)
+ KCONFIG:= \
+ CONFIG_SPS30 \
+ CONFIG_SPS30_I2C
+ FILES:= \
+ $(LINUX_DIR)/drivers/iio/chemical/sps30.ko \
+ $(LINUX_DIR)/drivers/iio/chemical/sps30_i2c.ko@ge5.14
+ AUTOLOAD:=$(call AutoProbe,sps30 sps30_i2c)
endef
define KernelPackage/iio-sps30/description