drivers: ethernet: drop DEV_DATA/DEV_CFG usage
Stop using redundant DEV_DATA/DEV_CFG macros and use dev->data and dev->config instead. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
d3443cc8c1
commit
6f6a178390
13 changed files with 141 additions and 157 deletions
|
@ -95,10 +95,6 @@ struct eth_gecko_dev_data {
|
|||
};
|
||||
|
||||
#define DEV_NAME(dev) ((dev)->name)
|
||||
#define DEV_CFG(dev) \
|
||||
((const struct eth_gecko_dev_cfg *)(dev)->config)
|
||||
#define DEV_DATA(dev) \
|
||||
((struct eth_gecko_dev_data *)(dev)->data)
|
||||
|
||||
/* PHY Management pins */
|
||||
#define PIN_PHY_MDC {DT_INST_PROP_BY_IDX(0, location_phy_mdc, 1), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue