Explorar el Código

kernel: Add kmod-w1-slave-ds2438

This patch adds support for building the ds2438 one-wire kernel module.

Signed-off-by: Andres Heinloo <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19694
Signed-off-by: Hauke Mehrtens <[email protected]>
Andres Heinloo hace 4 meses
padre
commit
0fa192a3a2
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. 16 0
      package/kernel/linux/modules/w1.mk

+ 16 - 0
package/kernel/linux/modules/w1.mk

@@ -174,3 +174,19 @@ define KernelPackage/w1-slave-ds2413/description
 endef
 
 $(eval $(call KernelPackage,w1-slave-ds2413))
+
+
+define KernelPackage/w1-slave-ds2438
+  TITLE:=DS2438 Smart Battery Monitor
+  KCONFIG:= \
+       CONFIG_W1_SLAVE_DS2438
+  FILES:=$(W1_SLAVES_DIR)/w1_ds2438.ko
+  AUTOLOAD:=$(call AutoProbe,w1_ds2438)
+  $(call AddDepends/w1)
+endef
+
+define KernelPackage/w1-slave-ds2438/description
+ Kernel module for 1-wire DS2438 Smart Battery Monitor support
+endef
+
+$(eval $(call KernelPackage,w1-slave-ds2438))