Skip to content

Commit 483fd85

Browse files
committed
drivers: ethernet: sy1xx: fix warning
casting the address to uint32_t removes the compiler warning. Signed-off-by: Sven Ginka <s.ginka@sensry.de>
1 parent c30959b commit 483fd85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ethernet/eth_sensry_sy1xx_mac.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ static void sy1xx_mac_iface_init(struct net_if *iface)
312312
struct sy1xx_mac_dev_config *cfg = (struct sy1xx_mac_dev_config *)dev->config;
313313
struct sy1xx_mac_dev_data *const data = dev->data;
314314

315-
LOG_INF("Interface init %s (%.8x)", net_if_get_device(iface)->name, iface);
315+
LOG_INF("Interface init %s (%.8x)", net_if_get_device(iface)->name, (uint32_t)iface);
316316

317317
data->iface = iface;
318318

@@ -571,7 +571,7 @@ const struct ethernet_api sy1xx_mac_driver_api = {
571571
.base_addr = DT_INST_REG_ADDR_BY_NAME(n, data), \
572572
.pcfg = PINCTRL_DT_INST_DEV_CONFIG_GET(n), \
573573
.promiscuous_mode = DT_INST_PROP_OR(n, promiscuous_mode, false), \
574-
.use_zephyr_random_mac = DT_INST_NODE_HAS_PROP(n, zephyr_random_mac_address), \
574+
.use_zephyr_random_mac = DT_INST_PROP_OR(n, zephyr_random_mac_address, false),\
575575
.phy_dev = DEVICE_DT_GET(DT_INST_PHANDLE(0, phy_handle))}; \
576576
\
577577
static struct sy1xx_mac_dma_buffers __attribute__((section(".udma_access"))) \

0 commit comments

Comments
 (0)