From cf8049a9edf2aff903717b9661d8a3597bb86031 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fin=20Maa=C3=9F?= Date: Fri, 13 Jun 2025 11:21:24 +0200 Subject: [PATCH] drivers: ethernet: phy: tja11xx: Wrap driver instances in device API macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the device API macro to place the driver API instance into an iterable section. Signed-off-by: Fin Maaß --- drivers/ethernet/phy/phy_tja11xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ethernet/phy/phy_tja11xx.c b/drivers/ethernet/phy/phy_tja11xx.c index 34b31d8e914..a6e9b7f951d 100644 --- a/drivers/ethernet/phy/phy_tja11xx.c +++ b/drivers/ethernet/phy/phy_tja11xx.c @@ -220,7 +220,7 @@ static int phy_tja11xx_link_cb_set(const struct device *dev, phy_callback_t cb, return 0; } -static const struct ethphy_driver_api phy_tja11xx_api = { +static DEVICE_API(ethphy, phy_tja11xx_api) = { .get_link = phy_tja11xx_get_link_state, .link_cb_set = phy_tja11xx_link_cb_set, .read = phy_tja11xx_reg_read,