Commit cf8049a9 authored by Fin Maaß's avatar Fin Maaß Committed by Anas Nashif
Browse files

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: default avatarFin Maaß <f.maass@vogl-electronic.com>
parent 4868c8ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,