Skip to content

Commit b5d7b4e

Browse files
committed
boards: Switching DEVICE_<DT/DT_INST>_DEFINE macros to new ones
Switching to DEVICE_INSTANCE and DEVICE_INSTANCE_FROM_DT_INST, thus merging former DEVICE_DEFINE and DEVICE_DT_DEFINE into one, so removing the name parameter from the earier and finally removing the prio parameter on all. Signed-off-by: Tomasz Bursztyka <[email protected]>
1 parent 394c058 commit b5d7b4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

boards/beagle/beagleconnect_freedom/board_antenna.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = {
4343
};
4444

4545
PINCTRL_DT_INST_DEFINE(0);
46-
DEVICE_DT_INST_DEFINE(0, board_antenna_init, NULL, NULL, NULL, POST_KERNEL,
47-
CONFIG_BOARD_ANTENNA_INIT_PRIO, NULL);
46+
DEVICE_INSTANCE_FROM_DT_INST(0, board_antenna_init, NULL, NULL, NULL, POST_KERNEL,
47+
NULL);
4848

4949
static const struct pinctrl_dev_config *ant_pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(0);
5050
static const struct gpio_dt_spec ant_gpios[] = {

boards/ti/common/board_antenna.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ const RFCC26XX_HWAttrsV2 RFCC26XX_hwAttrs = {
4444
};
4545

4646
PINCTRL_DT_INST_DEFINE(0);
47-
DEVICE_DT_INST_DEFINE(0, board_antenna_init, NULL, NULL, NULL, POST_KERNEL,
48-
CONFIG_BOARD_ANTENNA_INIT_PRIO, NULL);
47+
DEVICE_INSTANCE_FROM_DT_INST(0, board_antenna_init, NULL, NULL, NULL, POST_KERNEL,
48+
NULL);
4949

5050
static const struct pinctrl_dev_config *ant_pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(0);
5151
static const struct gpio_dt_spec ant_gpios[] = {

0 commit comments

Comments
 (0)