kernel: add kmod-hwmon-max6697 support
authorChristian Svensson <blue@cmd.nu>
Sun, 2 Jul 2023 22:00:07 +0000 (00:00 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 4 Jul 2023 21:00:11 +0000 (23:00 +0200)
Add package for Maxim MAX6697 I2C based temperature sensor.

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

index 23e32655b2c239dc0aff5dc5e5ab928641ab9989..69010faedd04c22480979f2683bb8204c0c75516 100644 (file)
@@ -369,6 +369,21 @@ endef
 $(eval $(call KernelPackage,hwmon-max6642))
 
 
+define KernelPackage/hwmon-max6697
+  TITLE:=MAX6697 monitoring support
+  KCONFIG:=CONFIG_SENSORS_MAX6697
+  FILES:=$(LINUX_DIR)/drivers/hwmon/max6697.ko
+  AUTOLOAD:=$(call AutoProbe,max6697)
+  $(call AddDepends/hwmon,+kmod-i2c-core)
+endef
+
+define KernelPackage/hwmon-max6697/description
+ Kernel module for Maxim MAX6697 temperature monitor
+endef
+
+$(eval $(call KernelPackage,hwmon-max6697))
+
+
 define KernelPackage/hwmon-mcp3021
   TITLE:=MCP3021/3221 monitoring support
   KCONFIG:=CONFIG_SENSORS_MCP3021