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:
parent
4868c8acae
commit
cf8049a9ed
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue