kernel: Add kmod-mfd
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Jun 2024 16:23:13 +0000 (18:23 +0200)
committerRISCi_ATOM <bob@bobcall.me>
Thu, 11 Jul 2024 15:21:09 +0000 (11:21 -0400)
Package the mfd-core.ko kernel module. It is selected by the
kmod-hwmon-gsc already.

Link: https://github.com/openwrt/openwrt/pull/15833
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
(cherry picked from commit 8b4fd1c0dece936dc2c79f2a17d824512e7e7df3)
Link: https://github.com/openwrt/openwrt/pull/15898
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/hwmon.mk
package/kernel/linux/modules/other.mk

index 29392548d40c168a9c20bf1f96ad1291217685ed..b4ddcfdde896ded43691b4e2b474055a8ad0f16b 100644 (file)
@@ -116,7 +116,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 18a9ae633121a87a9debd8fd4474a7ba01b3c570..d56f1388a935cb0ae1ba26255a542994552cf117 100644 (file)
@@ -745,6 +745,18 @@ endef
 $(eval $(call KernelPackage,rtc-s35390a))
 
 
+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