From: Roman Bazalevsky Date: Thu, 6 Dec 2018 11:54:41 +0000 (+0300) Subject: kernel/modules: HMC5843 3D-compass kernel module support enabled. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f332ae3c4357102d26714a0c591f922b4b1a19cf;p=openwrt%2Fstaging%2Fneocturne.git kernel/modules: HMC5843 3D-compass kernel module support enabled. Signed-off-by: Roman Bazalevsky --- diff --git a/package/kernel/linux/modules/iio.mk b/package/kernel/linux/modules/iio.mk index a2ce821e74..ee82eee71e 100644 --- a/package/kernel/linux/modules/iio.mk +++ b/package/kernel/linux/modules/iio.mk @@ -52,6 +52,23 @@ endef $(eval $(call KernelPackage,iio-ad799x)) +define KernelPackage/iio-hmc5843 + SUBMENU:=$(IIO_MENU) + DEPENDS:=+kmod-i2c-core +kmod-iio-core +kmod-regmap + TITLE:=Honeywell HMC58x3 Magnetometer + KCONFIG:= CONFIG_SENSORS_HMC5843_I2C + FILES:= \ + $(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_i2c.ko \ + $(LINUX_DIR)/drivers/iio/magnetometer/hmc5843_core.ko + AUTOLOAD:=$(call AutoLoad,56,hmc5843) +endef + +define KernelPackage/iio-hmc5843/description + Honeywell HMC5843/5883/5883L 3-Axis Magnetometer +endef + +$(eval $(call KernelPackage,iio-hmc5843)) + define KernelPackage/iio-bh1750 SUBMENU:=$(IIO_MENU) DEPENDS:=+kmod-i2c-core +kmod-iio-core