Changeset 38186


Ignore:
Timestamp:
2013-09-25T20:00:34+02:00 (4 years ago)
Author:
juhosg
Message:

package/kernel: add hwmon driver for ADT7410

Add support for the ADT7410 hwmon driver, a high precision
I2C temperature sensor.

Signed-off-by: Hartmut Knaack <knaack.h@…>
[juhosg: update subject, reformat commit message]
Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/linux/modules/hwmon.mk

    r38021 r38186  
    4545 
    4646 
     47define KernelPackage/hwmon-adt7410 
     48  TITLE:=ADT7410 monitoring support 
     49ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,3.10.0)),1) 
     50  KCONFIG:= \ 
     51        CONFIG_SENSORS_ADT7X10 \ 
     52        CONFIG_SENSORS_ADT7410 
     53  FILES:= \ 
     54        $(LINUX_DIR)/drivers/hwmon/adt7x10.ko \ 
     55        $(LINUX_DIR)/drivers/hwmon/adt7410.ko 
     56  AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410) 
     57else 
     58  KCONFIG:=CONFIG_SENSORS_ADT7410 
     59  FILES:=$(LINUX_DIR)/drivers/hwmon/adt7410.ko 
     60  AUTOLOAD:=$(call AutoLoad,60,adt7410) 
     61endif 
     62  $(call AddDepends/hwmon,+kmod-i2c-core @!(LINUX_3_3||LINUX_3_6)) 
     63endef 
     64 
     65define KernelPackage/hwmon-adt7410/description 
     66 Kernel module for ADT7410/7420 I2C thermal monitor chip 
     67endef 
     68 
     69$(eval $(call KernelPackage,hwmon-adt7410)) 
     70 
     71 
    4772define KernelPackage/hwmon-adt7475 
    4873  TITLE:=ADT7473/7475/7476/7490 monitoring support 
Note: See TracChangeset for help on using the changeset viewer.