# SPDX-License-Identifier: GPL-2.0
#
# Makefile for sensor chip drivers.
#

obj-$(CONFIG_HWMON)		+= hwmon.o
obj-$(CONFIG_HWMON_VID)		+= hwmon-vid.o

# ACPI drivers
# Rust-driver integration: build the hwmon Rust staticlib once and link the
# resulting $(RUST_DRV_OBJ) into each driver module that has a Rust port.
ifdef CONFIG_RUST_DRIVERS
RUST_DRV := watchdog/hwmon

# Build CARGO_FEATURES from enabled CONFIG_SENSORS_* drivers.  Each entry
# maps a Kconfig symbol to its Rust module name (the *-rust.o target stem
# in this file and the corresponding pub mod in
# drivers/rust/drivers/watchdog/hwmon/src/lib.rs).  This list IS the single
# source of truth for which Rust hwmon drivers get compiled into the
# shared $(RUST_DRV_OBJ) staticlib.  Adding a new Rust-port driver = adding
# one entry here + one #[cfg(feature = "...")] pub mod in lib.rs +
# one feature in Cargo.toml + the per-driver obj-/foo-rust-y block below.
#
# Without this gating the hwmon staticlib would always compile every
# `pub mod`, dragging in unresolved external refs (e.g. mc13xxx_*,
# da9052_*, nct6775_*, devm_iio_channel_get_all) into every per-driver
# .ko whose CONFIG_* is enabled, even when those subsystems are off.
hwmon-rust-feat = $(if $(filter y m,$($(1))),$(2))
hwmon-rust-null :=
hwmon-rust-space := $(hwmon-rust-null) $(hwmon-rust-null)
hwmon-rust-comma := ,
RUST_HWMON_FEATURES := \
    $(call hwmon-rust-feat,CONFIG_MAX31827,max31827) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_AD7314,ad7314) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_AD7414,ad7414) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_AD7418,ad7418) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADC128D818,adc128d818) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADCXX,adcxx) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM1021,adm1021) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM1025,adm1025) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM1026,adm1026) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM1029,adm1029) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM1031,adm1031) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM1177,adm1177) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADM9240,adm9240) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADS7828,ads7828) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADS7871,ads7871) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADT7310,adt7310) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADT7410,adt7410) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADT7411,adt7411) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADT7462,adt7462) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADT7470,adt7470) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ADT7X10,adt7x10) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_AHT10,aht10) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_ATXP1,atxp1) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_DMS5013A,dms5013a) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_DS1621,ds1621) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_DS620,ds620) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_EMC1403,emc1403) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_EMC2103,emc2103) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_EMC6W201,emc6w201) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_G760A,g760a) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_HIH6130,hih6130) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_HS3001,hs3001) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_IIO_HWMON,iio_hwmon) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_INA209,ina209) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_INA238,ina238) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_INA2XX,ina2xx) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_K10TEMP,k10temp) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM63,lm63) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM70,lm70) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM73,lm73) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM75,lm75) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM77,lm77) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM78,lm78) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM80,lm80) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM83,lm83) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM85,lm85) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM87,lm87) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM92,lm92) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM95234,lm95234) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM95241,lm95241) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LM95245,lm95245) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC2945,ltc2945) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC2990,ltc2990) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC4151,ltc4151) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC4215,ltc4215) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC4222,ltc4222) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC4245,ltc4245) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC4260,ltc4260) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_LTC4261,ltc4261) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX1111,max1111) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX127,max127) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX16065,max16065) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX1619,max1619) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX1668,max1668) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX197,max197) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX31722,max31722) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX31730,max31730) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX31760,max31760) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX31790,max31790) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX6620,max6620) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX6621,max6621) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX6639,max6639) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX6642,max6642) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX6650,max6650) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MAX6697,max6697) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MC34VR500,mc34vr500) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MCP3021,mcp3021) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_MENF21BMC_HWMON,menf21bmc_hwmon) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_NCT7802,nct7802) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_POWR1220,powr1220) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SBRMI,sbrmi) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SBTSI,sbtsi_temp) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SHT21,sht21) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SHT3x,sht3x) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SHT4x,sht4x) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SHTC1,shtc1) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_SMSC47B397,smsc47b397) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_TC654,tc654) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_TC74,tc74) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_THMC50,thmc50) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_TMP103,tmp103) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_TMP108,tmp108) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_TMP401,tmp401) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_TPS23861,tps23861) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_W83773G,w83773g) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_W83791D,w83791d) \
    $(call hwmon-rust-feat,CONFIG_SENSORS_W83L785TS,w83l785ts) \
    # end-of-list
CARGO_FEATURES := $(subst $(hwmon-rust-space),$(hwmon-rust-comma),$(strip $(RUST_HWMON_FEATURES)))
export CARGO_FEATURES

include $(srctree)/drivers/rust/templates/kbuild-rust-driver.mk
endif

obj-$(CONFIG_SENSORS_ACPI_POWER) += acpi_power_meter.o
obj-$(CONFIG_SENSORS_ATK0110)	+= asus_atk0110.o
obj-$(CONFIG_SENSORS_ASUS_EC)	+= asus-ec-sensors.o
obj-$(CONFIG_SENSORS_ASUS_WMI)	+= asus_wmi_sensors.o
obj-$(CONFIG_SENSORS_HP_WMI)	+= hp-wmi-sensors.o
mbj-$(CONFIG_SENSORS_PVT)	+= sw64_pvt.o

# Native drivers
# asb100, then w83781d go first, as they can override other drivers' addresses.
obj-$(CONFIG_SENSORS_ASB100)	+= asb100.o
obj-$(CONFIG_SENSORS_W83627HF)	+= w83627hf.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_W83773G)	+= w83773g-rust.o
w83773g-rust-y			:= w83773g_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_W83773G)	+= w83773g.o
endif
obj-$(CONFIG_SENSORS_W83792D)	+= w83792d.o
obj-$(CONFIG_SENSORS_W83793)	+= w83793.o
obj-$(CONFIG_SENSORS_W83795)	+= w83795.o
obj-$(CONFIG_SENSORS_W83781D)	+= w83781d.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_W83791D)	+= w83791d-rust.o
w83791d-rust-y			:= w83791d_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_W83791D)	+= w83791d.o
endif
obj-$(CONFIG_SENSORS_ABITUGURU)	+= abituguru.o
obj-$(CONFIG_SENSORS_ABITUGURU3)+= abituguru3.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_AD7314)	+= ad7314-rust.o
ad7314-rust-y			:= ad7314_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_AD7314)	+= ad7314.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_AD7414)	+= ad7414-rust.o
ad7414-rust-y			:= ad7414_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_AD7414)	+= ad7414.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_AD7418)	+= ad7418-rust.o
ad7418-rust-y			:= ad7418_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_AD7418)	+= ad7418.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADC128D818) += adc128d818-rust.o
adc128d818-rust-y		:= adc128d818_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADC128D818) += adc128d818.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADCXX)	+= adcxx-rust.o
adcxx-rust-y			:= adcxx_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADCXX)	+= adcxx.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM1021)	+= adm1021-rust.o
adm1021-rust-y			:= adm1021_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM1021)	+= adm1021.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM1025)	+= adm1025-rust.o
adm1025-rust-y			:= adm1025_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM1025)	+= adm1025.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM1026)	+= adm1026-rust.o
adm1026-rust-y			:= adm1026_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM1026)	+= adm1026.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM1029)	+= adm1029-rust.o
adm1029-rust-y			:= adm1029_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM1029)	+= adm1029.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM1031)	+= adm1031-rust.o
adm1031-rust-y			:= adm1031_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM1031)	+= adm1031.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM1177)	+= adm1177-rust.o
adm1177-rust-y			:= adm1177_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM1177)	+= adm1177.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADM9240)	+= adm9240-rust.o
adm9240-rust-y			:= adm9240_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADM9240)	+= adm9240.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADS7828)	+= ads7828-rust.o
ads7828-rust-y			:= ads7828_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADS7828)	+= ads7828.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADS7871)	+= ads7871-rust.o
ads7871-rust-y			:= ads7871_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADS7871)	+= ads7871.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADT7X10)	+= adt7x10-rust.o
adt7x10-rust-y			:= adt7x10_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADT7X10)	+= adt7x10.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADT7310)	+= adt7310-rust.o
adt7310-rust-y			:= adt7310_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADT7310)	+= adt7310.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADT7410)	+= adt7410-rust.o
adt7410-rust-y			:= adt7410_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADT7410)	+= adt7410.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADT7411)	+= adt7411-rust.o
adt7411-rust-y			:= adt7411_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADT7411)	+= adt7411.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADT7462)	+= adt7462-rust.o
adt7462-rust-y			:= adt7462_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADT7462)	+= adt7462.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ADT7470)	+= adt7470-rust.o
adt7470-rust-y			:= adt7470_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ADT7470)	+= adt7470.o
endif
obj-$(CONFIG_SENSORS_ADT7475)	+= adt7475.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_AHT10)	+= aht10-rust.o
aht10-rust-y			:= aht10_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_AHT10)	+= aht10.o
endif
obj-$(CONFIG_SENSORS_APPLESMC)	+= applesmc.o
obj-$(CONFIG_SENSORS_AQUACOMPUTER_D5NEXT) += aquacomputer_d5next.o
obj-$(CONFIG_SENSORS_ARM_SCMI)	+= scmi-hwmon.o
obj-$(CONFIG_SENSORS_ARM_SCPI)	+= scpi-hwmon.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_AS370)	+= as370-hwmon-rust.o
as370-hwmon-rust-y		:= as370-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_AS370)	+= as370-hwmon.o
endif
obj-$(CONFIG_SENSORS_ASC7621)	+= asc7621.o
obj-$(CONFIG_SENSORS_ASPEED)	+= aspeed-pwm-tacho.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_ATXP1)	+= atxp1-rust.o
atxp1-rust-y			:= atxp1_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_ATXP1)	+= atxp1.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_AXI_FAN_CONTROL) += axi-fan-control-rust.o
axi-fan-control-rust-y		:= axi-fan-control_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_AXI_FAN_CONTROL) += axi-fan-control.o
endif
obj-$(CONFIG_SENSORS_BT1_PVT)	+= bt1-pvt.o
obj-$(CONFIG_SENSORS_CORETEMP)	+= coretemp.o
obj-$(CONFIG_SENSORS_CORSAIR_CPRO)	+= corsair-cpro.o
obj-$(CONFIG_SENSORS_CORSAIR_PSU) += corsair-psu.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_DA9052_ADC)	+= da9052-hwmon-rust.o
da9052-hwmon-rust-y			:= da9052-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_DA9052_ADC)	+= da9052-hwmon.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_DA9055)	+= da9055-hwmon-rust.o
da9055-hwmon-rust-y			:= da9055-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_DA9055)	+= da9055-hwmon.o
endif
obj-$(CONFIG_SENSORS_DELL_SMM)	+= dell-smm-hwmon.o
obj-$(CONFIG_SENSORS_DME1737)	+= dme1737.o
obj-$(CONFIG_SENSORS_DRIVETEMP)	+= drivetemp.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_DS620)	+= ds620-rust.o
ds620-rust-y			:= ds620_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_DS620)	+= ds620.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_DS1621)	+= ds1621-rust.o
ds1621-rust-y			:= ds1621_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_DS1621)	+= ds1621.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_EMC1403)	+= emc1403-rust.o
emc1403-rust-y			:= emc1403_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_EMC1403)	+= emc1403.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_EMC2103)	+= emc2103-rust.o
emc2103-rust-y			:= emc2103_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_EMC2103)	+= emc2103.o
endif
obj-$(CONFIG_SENSORS_EMC2305)	+= emc2305.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_EMC6W201)	+= emc6w201-rust.o
emc6w201-rust-y			:= emc6w201_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_EMC6W201)	+= emc6w201.o
endif
obj-$(CONFIG_SENSORS_F71805F)	+= f71805f.o
obj-$(CONFIG_SENSORS_F71882FG)	+= f71882fg.o
obj-$(CONFIG_SENSORS_F75375S)	+= f75375s.o
obj-$(CONFIG_SENSORS_FAM15H_POWER) += fam15h_power.o
obj-$(CONFIG_SENSORS_FSCHMD)	+= fschmd.o
obj-$(CONFIG_SENSORS_FTSTEUTATES) += ftsteutates.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_G760A)	+= g760a-rust.o
g760a-rust-y			:= g760a_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_G760A)	+= g760a.o
endif
obj-$(CONFIG_SENSORS_G762)	+= g762.o
obj-$(CONFIG_SENSORS_GL518SM)	+= gl518sm.o
obj-$(CONFIG_SENSORS_GL520SM)	+= gl520sm.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_GSC)	+= gsc-hwmon-rust.o
gsc-hwmon-rust-y			:= gsc-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_GSC)	+= gsc-hwmon.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_GPIO_FAN)	+= gpio-fan-rust.o
gpio-fan-rust-y			:= gpio-fan_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_GPIO_FAN)	+= gpio-fan.o
endif
obj-$(CONFIG_SENSORS_GXP_FAN_CTRL) += gxp-fan-ctrl.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_HIH6130)	+= hih6130-rust.o
hih6130-rust-y			:= hih6130_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_HIH6130)	+= hih6130.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_HS3001)	+= hs3001-rust.o
hs3001-rust-y			:= hs3001_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_HS3001)	+= hs3001.o
endif
obj-$(CONFIG_SENSORS_ULTRA45)	+= ultra45_env.o
obj-$(CONFIG_SENSORS_I5500)	+= i5500_temp.o
obj-$(CONFIG_SENSORS_I5K_AMB)	+= i5k_amb.o
obj-$(CONFIG_SENSORS_IBMAEM)	+= ibmaem.o
obj-$(CONFIG_SENSORS_IBMPEX)	+= ibmpex.o
obj-$(CONFIG_SENSORS_IBMPOWERNV)+= ibmpowernv.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_IIO_HWMON)	+= iio_hwmon-rust.o
iio_hwmon-rust-y			:= iio_hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_IIO_HWMON)	+= iio_hwmon.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_INA209)	+= ina209-rust.o
ina209-rust-y			:= ina209_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_INA209)	+= ina209.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_INA2XX)	+= ina2xx-rust.o
ina2xx-rust-y			:= ina2xx_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_INA2XX)	+= ina2xx.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_INA238)	+= ina238-rust.o
ina238-rust-y			:= ina238_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_INA238)	+= ina238.o
endif
obj-$(CONFIG_SENSORS_INA3221)	+= ina3221.o
obj-$(CONFIG_SENSORS_INTEL_M10_BMC_HWMON) += intel-m10-bmc-hwmon.o
obj-$(CONFIG_SENSORS_IT87)	+= it87.o
obj-$(CONFIG_SENSORS_JC42)	+= jc42.o
obj-$(CONFIG_SENSORS_K8TEMP)	+= k8temp.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_K10TEMP)	+= k10temp-rust.o
k10temp-rust-y			:= k10temp_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_K10TEMP)	+= k10temp.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LAN966X)	+= lan966x-hwmon-rust.o
lan966x-hwmon-rust-y			:= lan966x-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LAN966X)	+= lan966x-hwmon.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LINEAGE)	+= lineage-pem-rust.o
lineage-pem-rust-y		:= lineage-pem_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LINEAGE)	+= lineage-pem.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LOCHNAGAR)	+= lochnagar-hwmon-rust.o
lochnagar-hwmon-rust-y			:= lochnagar-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LOCHNAGAR)	+= lochnagar-hwmon.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM63)	+= lm63-rust.o
lm63-rust-y			:= lm63_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM63)	+= lm63.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM70)	+= lm70-rust.o
lm70-rust-y			:= lm70_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM70)	+= lm70.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM73)	+= lm73-rust.o
lm73-rust-y			:= lm73_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM73)	+= lm73.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM75)	+= lm75-rust.o
lm75-rust-y			:= lm75_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM75)	+= lm75.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM77)	+= lm77-rust.o
lm77-rust-y			:= lm77_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM77)	+= lm77.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM78)	+= lm78-rust.o
lm78-rust-y			:= lm78_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM78)	+= lm78.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM80)	+= lm80-rust.o
lm80-rust-y			:= lm80_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM80)	+= lm80.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM83)	+= lm83-rust.o
lm83-rust-y			:= lm83_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM83)	+= lm83.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM85)	+= lm85-rust.o
lm85-rust-y			:= lm85_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM85)	+= lm85.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM87)	+= lm87-rust.o
lm87-rust-y			:= lm87_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM87)	+= lm87.o
endif
obj-$(CONFIG_SENSORS_LM90)	+= lm90.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM92)	+= lm92-rust.o
lm92-rust-y			:= lm92_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM92)	+= lm92.o
endif
obj-$(CONFIG_SENSORS_LM93)	+= lm93.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM95234)	+= lm95234-rust.o
lm95234-rust-y			:= lm95234_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM95234)	+= lm95234.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM95241)	+= lm95241-rust.o
lm95241-rust-y			:= lm95241_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM95241)	+= lm95241.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LM95245)	+= lm95245-rust.o
lm95245-rust-y			:= lm95245_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LM95245)	+= lm95245.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC2945)	+= ltc2945-rust.o
ltc2945-rust-y			:= ltc2945_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC2945)	+= ltc2945.o
endif
obj-$(CONFIG_SENSORS_LTC2947)	+= ltc2947-core.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC2947_I2C)	+= ltc2947-i2c-rust.o
ltc2947-i2c-rust-y			:= ltc2947-i2c_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC2947_I2C) += ltc2947-i2c.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC2947_SPI)	+= ltc2947-spi-rust.o
ltc2947-spi-rust-y			:= ltc2947-spi_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC2947_SPI) += ltc2947-spi.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC2990)	+= ltc2990-rust.o
ltc2990-rust-y			:= ltc2990_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC2990)	+= ltc2990.o
endif
obj-$(CONFIG_SENSORS_LTC2992)	+= ltc2992.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC4151)	+= ltc4151-rust.o
ltc4151-rust-y			:= ltc4151_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC4151)	+= ltc4151.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC4215)	+= ltc4215-rust.o
ltc4215-rust-y			:= ltc4215_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC4215)	+= ltc4215.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC4222)	+= ltc4222-rust.o
ltc4222-rust-y			:= ltc4222_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC4222)	+= ltc4222.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC4245)	+= ltc4245-rust.o
ltc4245-rust-y			:= ltc4245_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC4245)	+= ltc4245.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC4260)	+= ltc4260-rust.o
ltc4260-rust-y			:= ltc4260_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC4260)	+= ltc4260.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_LTC4261)	+= ltc4261-rust.o
ltc4261-rust-y			:= ltc4261_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_LTC4261)	+= ltc4261.o
endif
obj-$(CONFIG_SENSORS_LTQ_CPUTEMP) += ltq-cputemp.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX1111)	+= max1111-rust.o
max1111-rust-y			:= max1111_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX1111)	+= max1111.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX127)	+= max127-rust.o
max127-rust-y			:= max127_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX127)	+= max127.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX16065)	+= max16065-rust.o
max16065-rust-y			:= max16065_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX16065)	+= max16065.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX1619)	+= max1619-rust.o
max1619-rust-y			:= max1619_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX1619)	+= max1619.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX1668)	+= max1668-rust.o
max1668-rust-y			:= max1668_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX1668)	+= max1668.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX197)	+= max197-rust.o
max197-rust-y			:= max197_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX197)	+= max197.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX31722)	+= max31722-rust.o
max31722-rust-y			:= max31722_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX31722)	+= max31722.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX31730)	+= max31730-rust.o
max31730-rust-y			:= max31730_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX31730)	+= max31730.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX31760)	+= max31760-rust.o
max31760-rust-y			:= max31760_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX31760)	+= max31760.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX6620)	+= max6620-rust.o
max6620-rust-y			:= max6620_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX6620)	+= max6620.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX6621)	+= max6621-rust.o
max6621-rust-y			:= max6621_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX6621)	+= max6621.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX6639)	+= max6639-rust.o
max6639-rust-y			:= max6639_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX6639)	+= max6639.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX6642)	+= max6642-rust.o
max6642-rust-y			:= max6642_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX6642)	+= max6642.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX6650)	+= max6650-rust.o
max6650-rust-y			:= max6650_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX6650)	+= max6650.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX6697)	+= max6697-rust.o
max6697-rust-y			:= max6697_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX6697)	+= max6697.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MAX31790)	+= max31790-rust.o
max31790-rust-y			:= max31790_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MAX31790)	+= max31790.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_MAX31827)	+= max31827-rust.o
max31827-rust-y			:= max31827_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_MAX31827) += max31827.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MC13783_ADC)	+= mc13783-adc-rust.o
mc13783-adc-rust-y			:= mc13783-adc_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MC13783_ADC)	+= mc13783-adc.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MC34VR500)	+= mc34vr500-rust.o
mc34vr500-rust-y			:= mc34vr500_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MC34VR500)	+= mc34vr500.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MCP3021)	+= mcp3021-rust.o
mcp3021-rust-y			:= mcp3021_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MCP3021)	+= mcp3021.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_TC654)	+= tc654-rust.o
tc654-rust-y			:= tc654_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_TC654)	+= tc654.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_TPS23861)	+= tps23861-rust.o
tps23861-rust-y			:= tps23861_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_TPS23861)	+= tps23861.o
endif
obj-$(CONFIG_SENSORS_MLXREG_FAN) += mlxreg-fan.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_MENF21BMC_HWMON)	+= menf21bmc_hwmon-rust.o
menf21bmc_hwmon-rust-y			:= menf21bmc_hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_MENF21BMC_HWMON) += menf21bmc_hwmon.o
endif
obj-$(CONFIG_SENSORS_MR75203)	+= mr75203.o
obj-$(CONFIG_SENSORS_NCT6683)	+= nct6683.o
obj-$(CONFIG_SENSORS_NCT6775_CORE) += nct6775-core.o
nct6775-objs			:= nct6775-platform.o
obj-$(CONFIG_SENSORS_NCT6775)	+= nct6775.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_NCT6775_I2C)	+= nct6775-i2c-rust.o
nct6775-i2c-rust-y			:= nct6775-i2c_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_NCT6775_I2C) += nct6775-i2c.o
endif
obj-$(CONFIG_SENSORS_NCT7511)	+= nct7511.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_NCT7802)	+= nct7802-rust.o
nct7802-rust-y			:= nct7802_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_NCT7802)	+= nct7802.o
endif
obj-$(CONFIG_SENSORS_NCT7904)	+= nct7904.o
obj-$(CONFIG_SENSORS_NPCM7XX)	+= npcm750-pwm-fan.o
obj-$(CONFIG_SENSORS_NSA320)	+= nsa320-hwmon.o
obj-$(CONFIG_SENSORS_NTC_THERMISTOR)	+= ntc_thermistor.o
obj-$(CONFIG_SENSORS_NZXT_KRAKEN2) += nzxt-kraken2.o
obj-$(CONFIG_SENSORS_NZXT_SMART2) += nzxt-smart2.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_OXP)	+= oxp-sensors-rust.o
oxp-sensors-rust-y		:= oxp-sensors_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_OXP)	+= oxp-sensors.o
endif
obj-$(CONFIG_SENSORS_PC87360)	+= pc87360.o
obj-$(CONFIG_SENSORS_PC87427)	+= pc87427.o
obj-$(CONFIG_SENSORS_PCF8591)	+= pcf8591.o
obj-$(CONFIG_SENSORS_PHYTIUM)	+= tacho-phytium.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_POWR1220)	+= powr1220-rust.o
powr1220-rust-y			:= powr1220_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_POWR1220)  += powr1220.o
endif
obj-$(CONFIG_SENSORS_PWM_FAN)	+= pwm-fan.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON)	+= raspberrypi-hwmon-rust.o
raspberrypi-hwmon-rust-y			:= raspberrypi-hwmon_rust.o $(RUST_DRV_OBJ)
else
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON)	+= raspberrypi-hwmon-rust.o
raspberrypi-hwmon-rust-y			:= raspberrypi-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_RASPBERRYPI_HWMON)	+= raspberrypi-hwmon.o
endif
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SBTSI)	+= sbtsi_temp-rust.o
sbtsi_temp-rust-y			:= sbtsi_temp_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SBTSI)	+= sbtsi_temp.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SBRMI)	+= sbrmi-rust.o
sbrmi-rust-y			:= sbrmi_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SBRMI)	+= sbrmi.o
endif
obj-$(CONFIG_SENSORS_SCH56XX_COMMON)+= sch56xx-common.o
obj-$(CONFIG_SENSORS_SCH5627)	+= sch5627.o
obj-$(CONFIG_SENSORS_SCH5636)	+= sch5636.o
obj-$(CONFIG_SENSORS_SFCTEMP)	+= sfctemp.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SL28CPLD)	+= sl28cpld-hwmon-rust.o
sl28cpld-hwmon-rust-y			:= sl28cpld-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SL28CPLD)	+= sl28cpld-hwmon.o
endif
obj-$(CONFIG_SENSORS_SHT15)	+= sht15.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SHT21)	+= sht21-rust.o
sht21-rust-y			:= sht21_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SHT21)	+= sht21.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SHT3x)	+= sht3x-rust.o
sht3x-rust-y			:= sht3x_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SHT3x)	+= sht3x.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SHT4x)	+= sht4x-rust.o
sht4x-rust-y			:= sht4x_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SHT4x)	+= sht4x.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SHTC1)	+= shtc1-rust.o
shtc1-rust-y			:= shtc1_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SHTC1)	+= shtc1.o
endif
obj-$(CONFIG_SENSORS_SIS5595)	+= sis5595.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SMPRO)	+= smpro-hwmon-rust.o
smpro-hwmon-rust-y			:= smpro-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SMPRO)	+= smpro-hwmon.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_SMSC47B397)	+= smsc47b397-rust.o
smsc47b397-rust-y			:= smsc47b397_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_SMSC47B397)+= smsc47b397.o
endif
obj-$(CONFIG_SENSORS_SMSC47M1)	+= smsc47m1.o
obj-$(CONFIG_SENSORS_SMSC47M192)+= smsc47m192.o
obj-$(CONFIG_SENSORS_SPARX5)	+= sparx5-temp.o
obj-$(CONFIG_SENSORS_STTS751)	+= stts751.o
obj-$(CONFIG_SENSORS_SY7636A)	+= sy7636a-hwmon.o
obj-$(CONFIG_SENSORS_AMC6821)	+= amc6821.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_TC74)	+= tc74-rust.o
tc74-rust-y			:= tc74_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_TC74)	+= tc74.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_THMC50)	+= thmc50-rust.o
thmc50-rust-y			:= thmc50_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_THMC50)	+= thmc50.o
endif
obj-$(CONFIG_SENSORS_TMP102)	+= tmp102.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_TMP103)	+= tmp103-rust.o
tmp103-rust-y			:= tmp103_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_TMP103)	+= tmp103.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_TMP108)	+= tmp108-rust.o
tmp108-rust-y			:= tmp108_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_TMP108)	+= tmp108.o
endif
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_TMP401)	+= tmp401-rust.o
tmp401-rust-y			:= tmp401_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_TMP401)	+= tmp401.o
endif
obj-$(CONFIG_SENSORS_TMP421)	+= tmp421.o
obj-$(CONFIG_SENSORS_TMP464)	+= tmp464.o
obj-$(CONFIG_SENSORS_TMP513)	+= tmp513.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_DMS5013A)	+= dms5013a-rust.o
dms5013a-rust-y			:= dms5013a_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_DMS5013A)	+= dms5013a.o
endif
CFLAGS_REMOVE_dms5013a.o	+= -mgeneral-regs-only
CFLAGS_dms5013a.o		+= -ffreestanding
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_VEXPRESS)	+= vexpress-hwmon-rust.o
vexpress-hwmon-rust-y			:= vexpress-hwmon_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_VEXPRESS)	+= vexpress-hwmon.o
endif
obj-$(CONFIG_SENSORS_VIA_CPUTEMP)+= via-cputemp.o
obj-$(CONFIG_SENSORS_ZHAOXIN_CPUTEMP) += zhaoxin-cputemp.o
obj-$(CONFIG_SENSORS_VIA686A)	+= via686a.o
obj-$(CONFIG_SENSORS_VT1211)	+= vt1211.o
obj-$(CONFIG_SENSORS_VT8231)	+= vt8231.o
obj-$(CONFIG_SENSORS_W83627EHF)	+= w83627ehf.o
ifdef CONFIG_RUST_DRIVERS
obj-$(CONFIG_SENSORS_W83L785TS)	+= w83l785ts-rust.o
w83l785ts-rust-y			:= w83l785ts_rust.o $(RUST_DRV_OBJ)
else
obj-$(CONFIG_SENSORS_W83L785TS)	+= w83l785ts.o
endif
obj-$(CONFIG_SENSORS_W83L786NG)	+= w83l786ng.o
obj-$(CONFIG_SENSORS_WM831X)	+= wm831x-hwmon.o
obj-$(CONFIG_SENSORS_WM8350)	+= wm8350-hwmon.o
obj-$(CONFIG_SENSORS_XGENE)	+= xgene-hwmon.o

obj-$(CONFIG_SENSORS_OCC)	+= occ/
obj-$(CONFIG_SENSORS_PECI)	+= peci/
obj-$(CONFIG_PMBUS)		+= pmbus/

ccflags-$(CONFIG_HWMON_DEBUG_CHIP) := -DDEBUG
