Skip to content

Commit cf8049a

Browse files
maass-hamburgnashif
authored andcommitted
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>
1 parent 4868c8a commit cf8049a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/phy/phy_tja11xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ static int phy_tja11xx_link_cb_set(const struct device *dev, phy_callback_t cb,
220220
return 0;
221221
}
222222

223-
static const struct ethphy_driver_api phy_tja11xx_api = {
223+
static DEVICE_API(ethphy, phy_tja11xx_api) = {
224224
.get_link = phy_tja11xx_get_link_state,
225225
.link_cb_set = phy_tja11xx_link_cb_set,
226226
.read = phy_tja11xx_reg_read,

0 commit comments

Comments
 (0)