Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_adin2111.c
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ static int phy_adin2111_link_cb_set(const struct device *dev, phy_callback_t cb,
return 0;
}

static const struct ethphy_driver_api phy_adin2111_api = {
static DEVICE_API(ethphy, phy_adin2111_api) = {
.get_link = phy_adin2111_get_link_state,
.cfg_link = phy_adin2111_cfg_link,
.link_cb_set = phy_adin2111_link_cb_set,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_microchip_ksz8081.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ static int phy_mc_ksz8081_init(const struct device *dev)
return 0;
}

static const struct ethphy_driver_api mc_ksz8081_phy_api = {
static DEVICE_API(ethphy, mc_ksz8081_phy_api) = {
.get_link = phy_mc_ksz8081_get_link,
.cfg_link = phy_mc_ksz8081_cfg_link,
.link_cb_set = phy_mc_ksz8081_link_cb_set,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ static int phy_mii_initialize(const struct device *dev)

#define IS_FIXED_LINK(n) DT_INST_NODE_HAS_PROP(n, fixed_link)

static const struct ethphy_driver_api phy_mii_driver_api = {
static DEVICE_API(ethphy, phy_mii_driver_api) = {
.get_link = phy_mii_get_link_state,
.cfg_link = phy_mii_cfg_link,
.link_cb_set = phy_mii_link_cb_set,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_qualcomm_ar8031.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ static int qc_ar8031_init(const struct device *dev)
return 0;
}

static const struct ethphy_driver_api ar8031_driver_api = {
static DEVICE_API(ethphy, ar8031_driver_api) = {
.get_link = qc_ar8031_get_link_state,
.cfg_link = qc_ar8031_cfg_link,
.link_cb_set = qc_ar8031_link_cb_set,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_realtek_rtl8211f.c
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ static int phy_rt_rtl8211f_init(const struct device *dev)
return 0;
}

static const struct ethphy_driver_api rt_rtl8211f_phy_api = {
static DEVICE_API(ethphy, rt_rtl8211f_phy_api) = {
.get_link = phy_rt_rtl8211f_get_link,
.cfg_link = phy_rt_rtl8211f_cfg_link,
.link_cb_set = phy_rt_rtl8211f_link_cb_set,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_ti_dp83825.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ static int phy_ti_dp83825_init(const struct device *dev)
return 0;
}

static const struct ethphy_driver_api ti_dp83825_phy_api = {
static DEVICE_API(ethphy, ti_dp83825_phy_api) = {
.get_link = phy_ti_dp83825_get_link,
.cfg_link = phy_ti_dp83825_cfg_link,
.link_cb_set = phy_ti_dp83825_link_cb_set,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ethernet/phy/phy_tja1103.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ static int phy_tja1103_link_cb_set(const struct device *dev, phy_callback_t cb,
return 0;
}

static const struct ethphy_driver_api phy_tja1103_api = {
static DEVICE_API(ethphy, phy_tja1103_api) = {
.get_link = phy_tja1103_get_link_state,
.cfg_link = phy_tja1103_cfg_link,
.link_cb_set = phy_tja1103_link_cb_set,
Expand Down
Loading