[OpenWrt-Devel] [PATCH]other.mk: update configuration for ad799x
Hartmut Knaack
knaack.h at gmx.de
Wed Sep 3 15:31:33 EDT 2014
The ad799x driver moved out of staging since kernel 3.16, so update filepath,
config elements and description.
Signed-off-by: Hartmut Knaack <knaack.h at gmx.de>
---
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 2f6f774..6afcbb6 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -239,17 +239,22 @@ define KernelPackage/iio-ad799x
SUBMENU:=$(OTHER_MENU)
DEPENDS:=kmod-i2c-core kmod-iio-core
TITLE:=Analog Devices AD799x ADC driver
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.16.0)),1)
+ KCONFIG:=CONFIG_AD799X
+ FILES:=$(LINUX_DIR)/drivers/iio/adc/ad799x.ko
+else
KCONFIG:= \
CONFIG_AD799X_RING_BUFFER=y \
CONFIG_AD799X
FILES:=$(LINUX_DIR)/drivers/staging/iio/adc/ad799x.ko
+endif
AUTOLOAD:=$(call AutoLoad,56,ad799x)
endef
define KernelPackage/iio-ad799x/description
support for Analog Devices:
ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997, ad7998
- i2c analog to digital converters (ADC). WARNING! This driver is still staging!
+ i2c analog to digital converters (ADC).
endef
$(eval $(call KernelPackage,iio-ad799x))
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list