kernel: add kmod-hwmon-jc42 support
authorChristian Svensson <blue@cmd.nu>
Sun, 2 Jul 2023 22:02:14 +0000 (00:02 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 4 Jul 2023 21:00:11 +0000 (23:00 +0200)
Add package for Jedec JC42.4 compliant temperature sensor.

Signed-off-by: Christian Svensson <blue@cmd.nu>
package/kernel/linux/modules/hwmon.mk

index 69010faedd04c22480979f2683bb8204c0c75516..5761c4bc6b7a6b96e19dac538525a3d653eacaad 100644 (file)
@@ -217,6 +217,21 @@ endef
 $(eval $(call KernelPackage,hwmon-it87))
 
 
+define KernelPackage/hwmon-jc42
+  TITLE:=Jedec JC42.4 compliant temperature sensors support
+  KCONFIG:=CONFIG_SENSORS_JC42
+  FILES:=$(LINUX_DIR)/drivers/hwmon/jc42.ko
+  AUTOLOAD:=$(call AutoProbe,jc42)
+  $(call AddDepends/hwmon,+kmod-i2c-core +kmod-regmap-i2c)
+endef
+
+define KernelPackage/hwmon-jc42/description
+ Kernel module for Jedec JC42.4 compliant temperature sensors
+endef
+
+$(eval $(call KernelPackage,hwmon-jc42))
+
+
 define KernelPackage/hwmon-lm63
   TITLE:=LM63/64 monitoring support
   KCONFIG:=CONFIG_SENSORS_LM63