mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-30 11:23:15 +00:00
kernel: modules: hwmon: adapt for kernel 6.6
Adapt hwmon kmods for building under kernel 6.6: * ad7418 now requires regmap * Invert criteria to allow adt7410 be built with Linux 6.1 as well as Linux 6.6. Signed-off-by: Tan Zien <nabsdh9@gmail.com>
This commit is contained in:
parent
35b04bafa1
commit
faf3d80bf1
@ -34,7 +34,7 @@ define KernelPackage/hwmon-ad7418
|
||||
KCONFIG:=CONFIG_SENSORS_AD7418
|
||||
FILES:=$(LINUX_DIR)/drivers/hwmon/ad7418.ko
|
||||
AUTOLOAD:=$(call AutoLoad,60,ad7418 ad7418)
|
||||
$(call AddDepends/hwmon,+kmod-i2c-core)
|
||||
$(call AddDepends/hwmon,+kmod-i2c-core +LINUX_6_6:kmod-regmap-core)
|
||||
endef
|
||||
|
||||
define KernelPackage/hwmon-ad7418/description
|
||||
@ -52,7 +52,7 @@ define KernelPackage/hwmon-adt7410
|
||||
$(LINUX_DIR)/drivers/hwmon/adt7x10.ko \
|
||||
$(LINUX_DIR)/drivers/hwmon/adt7410.ko
|
||||
AUTOLOAD:=$(call AutoLoad,60,adt7x10 adt7410)
|
||||
$(call AddDepends/hwmon,+kmod-i2c-core +LINUX_6_1:kmod-regmap-core)
|
||||
$(call AddDepends/hwmon,+kmod-i2c-core +!LINUX_5_15:kmod-regmap-core)
|
||||
endef
|
||||
|
||||
define KernelPackage/hwmon-adt7410/description
|
||||
|
Loading…
Reference in New Issue
Block a user