Skip to content

Commit

Permalink
drivers: counter: Fix dt_node_bool_prop calls in Kconfig.nrfx
Browse files Browse the repository at this point in the history
This is a follow up to commit a1ab8da.

Several calls to the dt_node_bool_prop function in Kconfig.nrfx for
the counter drivers are done with wrong parameters. The function
expects a full node path, but it is provided with only the node name
component.
Fix those by using dt_nodelabel_bool_prop instead, as such function is
available now and it is more suitable for such cases.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
  • Loading branch information
anangl authored and carlescufi committed Mar 24, 2022
1 parent 2399433 commit 44adeba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/counter/Kconfig.nrfx
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,14 @@ config COUNTER_RTC2_ZLI

# Internal flag which detects if PPI wrap feature is enabled for any instance
config COUNTER_RTC_WITH_PPI_WRAP
def_bool ($(dt_node_bool_prop,rtc-0,ppi-wrap) && COUNTER_RTC0) || \
($(dt_node_bool_prop,rtc-1,ppi-wrap) && COUNTER_RTC1) || \
($(dt_node_bool_prop,rtc-2,ppi-wrap) && COUNTER_RTC2)
def_bool ($(dt_nodelabel_bool_prop,rtc0,ppi-wrap) && COUNTER_RTC0) || \
($(dt_nodelabel_bool_prop,rtc1,ppi-wrap) && COUNTER_RTC1) || \
($(dt_nodelabel_bool_prop,rtc2,ppi-wrap) && COUNTER_RTC2)
select NRFX_PPI if HAS_HW_NRF_PPI
select NRFX_DPPI if HAS_HW_NRF_DPPIC

# Internal flag which detects if fixed top feature is enabled for any instance
config COUNTER_RTC_CUSTOM_TOP_SUPPORT
def_bool (!$(dt_node_bool_prop,rtc-0,fixed-top) && COUNTER_RTC0) || \
(!$(dt_node_bool_prop,rtc-1,fixed-top) && COUNTER_RTC1) || \
(!$(dt_node_bool_prop,rtc-2,fixed-top) && COUNTER_RTC2)
def_bool (!$(dt_nodelabel_bool_prop,rtc0,fixed-top) && COUNTER_RTC0) || \
(!$(dt_nodelabel_bool_prop,rtc1,fixed-top) && COUNTER_RTC1) || \
(!$(dt_nodelabel_bool_prop,rtc2,fixed-top) && COUNTER_RTC2)

0 comments on commit 44adeba

Please sign in to comment.