drivers: ethernet: phy: tja11xx: Wrap driver instances in device API macro

Use the device API macro to place the driver API instance into an iterable
section.

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2025-06-13 11:21:24 +02:00 committed by Anas Nashif
commit cf8049a9ed

View file

@ -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,