Skip to content

Commit 665da73

Browse files
avolkov-1221nashif
authored andcommitted
drivers: adc: ra: rename "channels-num" to the more common "channel-count"
The "channels-num" should not be used here, other system's parts are using "channel-count" instead for the same purpose. Also property's description has been сorrected. Signed-off-by: Andrey VOLKOV <[email protected]>
1 parent d47a9e2 commit 665da73

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

drivers/adc/adc_renesas_ra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ const adc_extended_cfg_t g_adc_cfg_extend = {
348348
.ref_internal = DT_INST_PROP(idx, vref_mv), \
349349
IF_ENABLED(CONFIG_ADC_ASYNC, (.read_async = adc_ra_read_async))}; \
350350
static const struct adc_ra_config adc_ra_config_##idx = { \
351-
.num_channels = DT_INST_PROP(idx, channels_num), \
351+
.num_channels = DT_INST_PROP(idx, channel_count), \
352352
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(idx), \
353353
IRQ_CONFIGURE_DEFINE(idx), \
354354
}; \

dts/arm/renesas/ra/ra8/ra8x1.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@
284284
reg = <0x40332000 0x100>;
285285
#io-channel-cells = <1>;
286286
vref-mv = <3300>;
287-
channels-num = <12>;
287+
channel-count = <12>;
288288
status = "disabled";
289289
};
290290

@@ -295,7 +295,7 @@
295295
reg = <0x40332200 0x100>;
296296
#io-channel-cells = <1>;
297297
vref-mv = <3300>;
298-
channels-num = <13>;
298+
channel-count = <13>;
299299
status = "disabled";
300300
};
301301

dts/bindings/adc/renesas,ra-adc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ properties:
1616
required: true
1717
description: ADC reference voltage (Unit:mV)
1818

19-
channels-num:
19+
channel-count:
2020
type: int
2121
required: true
22-
description: ADC channels number
22+
description: The number of ADC channels
2323

2424
"#io-channel-cells":
2525
const: 1

0 commit comments

Comments
 (0)