Browse Source

This patch adds a kmod in hwmon for the SHT21 sensor (I2C temperature and humidity sensor)

Signed-off-by: Christian Gagneraud <[email protected]>

SVN-Revision: 30986
Jo-Philipp Wich 14 years ago
parent
commit
c31627a112
1 changed files with 13 additions and 0 deletions
  1. 13 0
      package/kernel/modules/hwmon.mk

+ 13 - 0
package/kernel/modules/hwmon.mk

@@ -103,6 +103,19 @@ endef
 
 $(eval $(call KernelPackage,hwmon-lm95241))
 
+define KernelPackage/hwmon-sht21
+  TITLE:=Sensiron SHT21 and compat. monitoring support
+  KCONFIG:=CONFIG_SENSORS_SHT21
+  FILES:=$(LINUX_DIR)/drivers/hwmon/sht21.ko
+  AUTOLOAD:=$(call AutoLoad,60,sht21)
+  $(call AddDepends/hwmon,+kmod-i2c-core)
+endef
+
+define KernelPackage/hwmon-sht21/description
+ Kernel module for Sensirion SHT21 and SHT25 temperature and humidity sensors chip
+endef
+
+$(eval $(call KernelPackage,hwmon-sht21))
 
 define KernelPackage/hwmon-pc87360
   TITLE:=PC87360 monitoring support