kernel: Add kmod-mfd
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Jun 2024 16:23:13 +0000 (18:23 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Wed, 3 Jul 2024 11:11:02 +0000 (13:11 +0200)
Package the mfd-core.ko kernel module. It is selected by the
kmod-hwmon-gsc already.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Link: https://github.com/openwrt/openwrt/pull/15833
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/kernel/linux/modules/hwmon.mk
package/kernel/linux/modules/other.mk

index cb77eed22e2e8f1e72300c9a4503974f321e6fd3..9a329bc6bca97aa1bd95751365448ab87e2b4788 100644 (file)
@@ -148,7 +148,7 @@ define KernelPackage/hwmon-gsc
        $(LINUX_DIR)/drivers/mfd/gateworks-gsc.ko \
        $(LINUX_DIR)/drivers/hwmon/gsc-hwmon.ko
   AUTOLOAD:=$(call AutoLoad,20,gsc-hwmon,1)
-  $(call AddDepends/hwmon,+kmod-i2c-core)
+  $(call AddDepends/hwmon,+kmod-i2c-core +kmod-mfd)
 endef
 
 define KernelPackage/hwmon-gsc/description
index 8a5054664698cdfcc0131e4f1dd41343e0004c7c..f6f5ecc075ab14dac2cfe4df14dd1bfdca30fbbb 100644 (file)
@@ -572,6 +572,18 @@ endef
 $(eval $(call KernelPackage,bcma))
 
 
+define KernelPackage/mfd
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Multifunction device drivers
+  HIDDEN:=1
+  KCONFIG:=CONFIG_MFD_CORE
+  FILES:=$(LINUX_DIR)/drivers/mfd/mfd-core.ko
+  AUTOLOAD:=$(call AutoLoad,10,mfd-core)
+endef
+
+$(eval $(call KernelPackage,mfd))
+
+
 define KernelPackage/mtdtests
   SUBMENU:=$(OTHER_MENU)
   TITLE:=MTD subsystem tests