From 5db05878ab6ef2592281e068b5372d1dd6c62571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Anikiel?= Date: Fri, 4 Aug 2023 10:36:40 +0000 Subject: [PATCH] drivers: sensor: ntc-thermistor: Remove r25-ohm property MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the r25-ohm property. It is not used by the driver, and it is not present in linux. Signed-off-by: Paweł Anikiel --- boards/arm/tdk_robokit1/tdk_robokit1-common.dtsi | 1 - drivers/sensor/ntc_thermistor/ntc_thermistor.c | 1 - drivers/sensor/ntc_thermistor/ntc_thermistor.h | 1 - dts/bindings/sensor/ntc-thermistor.yaml | 5 ----- tests/drivers/build_all/sensor/adc.dtsi | 2 -- 5 files changed, 10 deletions(-) diff --git a/boards/arm/tdk_robokit1/tdk_robokit1-common.dtsi b/boards/arm/tdk_robokit1/tdk_robokit1-common.dtsi index 4d7003fadd9..5fc1bf4cb9f 100644 --- a/boards/arm/tdk_robokit1/tdk_robokit1-common.dtsi +++ b/boards/arm/tdk_robokit1/tdk_robokit1-common.dtsi @@ -46,7 +46,6 @@ temp_sensor: ambient_temp_sensor { compatible = "epcos,b57861s0103a039"; io-channels = <&spi_adc 0>; - r25-ohm = <10000>; pullup-uv = <3300000>; pullup-ohm = <0>; pulldown-ohm = <10000>; diff --git a/drivers/sensor/ntc_thermistor/ntc_thermistor.c b/drivers/sensor/ntc_thermistor/ntc_thermistor.c index 9ca8b659f02..c07742f3b3f 100644 --- a/drivers/sensor/ntc_thermistor/ntc_thermistor.c +++ b/drivers/sensor/ntc_thermistor/ntc_thermistor.c @@ -102,7 +102,6 @@ static int ntc_thermistor_init(const struct device *dev) .adc_channel = ADC_DT_SPEC_INST_GET(inst), \ .ntc_cfg = \ { \ - .r25_ohm = DT_INST_PROP(inst, r25_ohm), \ .pullup_uv = DT_INST_PROP(inst, pullup_uv), \ .pullup_ohm = DT_INST_PROP(inst, pullup_ohm), \ .pulldown_ohm = DT_INST_PROP(inst, pulldown_ohm), \ diff --git a/drivers/sensor/ntc_thermistor/ntc_thermistor.h b/drivers/sensor/ntc_thermistor/ntc_thermistor.h index 77143d451ef..3a202d3bcb3 100644 --- a/drivers/sensor/ntc_thermistor/ntc_thermistor.h +++ b/drivers/sensor/ntc_thermistor/ntc_thermistor.h @@ -21,7 +21,6 @@ struct ntc_type { struct ntc_config { bool connected_positive; - uint32_t r25_ohm; uint32_t pullup_uv; uint32_t pullup_ohm; uint32_t pulldown_ohm; diff --git a/dts/bindings/sensor/ntc-thermistor.yaml b/dts/bindings/sensor/ntc-thermistor.yaml index 35fd96bec29..5c7fe3a4654 100644 --- a/dts/bindings/sensor/ntc-thermistor.yaml +++ b/dts/bindings/sensor/ntc-thermistor.yaml @@ -11,11 +11,6 @@ properties: description: | ADC IO channel connected to this NTC thermistor. - r25-ohm: - type: int - description: | - The resistance value of the thermistor at 25 C. - pullup-uv: type: int description: | diff --git a/tests/drivers/build_all/sensor/adc.dtsi b/tests/drivers/build_all/sensor/adc.dtsi index 7eb5b2a0d4b..c5a1223576e 100644 --- a/tests/drivers/build_all/sensor/adc.dtsi +++ b/tests/drivers/build_all/sensor/adc.dtsi @@ -36,7 +36,6 @@ test_adc_emul: adc { test_ntc_thermistor_generic: ntc-thermistor-generic { compatible = "ntc-thermistor-generic"; io-channels = <&adc0 0>; - r25-ohm = <10000>; pullup-uv = <3300000>; pullup-ohm = <0>; pulldown-ohm = <10000>; @@ -47,7 +46,6 @@ test_ntc_thermistor_generic: ntc-thermistor-generic { test_epcos_b57861s0103a039: epcos-b57861s0103a039 { compatible = "epcos,b57861s0103a039"; io-channels = <&adc0 0>; - r25-ohm = <10000>; pullup-uv = <3300000>; pullup-ohm = <0>; pulldown-ohm = <10000>;