Skip to content

Commit eecaf6d

Browse files
committed
samples: boards: nrfx_prs: use DT_LABEL macro
Change code to use DT_LABEL macro so its more obvious what is going on. Signed-off-by: Kumar Gala <[email protected]>
1 parent b4aea5a commit eecaf6d

File tree

1 file changed

+2
-2
lines changed
  • samples/boards/nrf/nrfx_prs/src

1 file changed

+2
-2
lines changed

samples/boards/nrf/nrfx_prs/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ static bool init_buttons(void)
6363
} btn_spec[] = {
6464
{
6565
GPIO_DT_SPEC_GET(DT_ALIAS(sw0), gpios),
66-
DT_PROP(DT_ALIAS(sw0), label),
66+
DT_LABEL(DT_ALIAS(sw0)),
6767
"trigger a transfer",
6868
sw0_handler
6969
},
7070
{
7171
GPIO_DT_SPEC_GET(DT_ALIAS(sw1), gpios),
72-
DT_PROP(DT_ALIAS(sw1), label),
72+
DT_LABEL(DT_ALIAS(sw1)),
7373
"switch the type of peripheral",
7474
sw1_handler
7575
},

0 commit comments

Comments
 (0)