kernel: add kmod-hwmon-max6642 support
authorTim Harvey <tharvey@gateworks.com>
Tue, 28 Feb 2023 00:13:07 +0000 (16:13 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 5 Mar 2023 15:45:25 +0000 (16:45 +0100)
Add package for Maxim MAX6642 i2c based temperature sensor.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
package/kernel/linux/modules/hwmon.mk

index 79df0471ed519096ba2c03e7a2d9b1c467071d98..29392548d40c168a9c20bf1f96ad1291217685ed 100644 (file)
@@ -354,6 +354,21 @@ endef
 $(eval $(call KernelPackage,hwmon-ltc4151))
 
 
+define KernelPackage/hwmon-max6642
+  TITLE:=MAX6642 monitoring support
+  KCONFIG:=CONFIG_SENSORS_MAX6642
+  FILES:=$(LINUX_DIR)/drivers/hwmon/max6642.ko
+  AUTOLOAD:=$(call AutoLoad,60,max6642 max6642)
+  $(call AddDepends/hwmon,+kmod-i2c-core)
+endef
+
+define KernelPackage/hwmon-max6642/description
+ Kernel module for Maxim MAX6642 temperature monitor
+endef
+
+$(eval $(call KernelPackage,hwmon-max6642))
+
+
 define KernelPackage/hwmon-mcp3021
   TITLE:=MCP3021/3221 monitoring support
   KCONFIG:=CONFIG_SENSORS_MCP3021