net: offload: fix device and driver names generated by DT device macros
Generated device and driver names have changed with commits [1] and [2], but net offload drivers missed the conversion. Update net offload DT device macros now. [1] commit8c1bef535b
("device: support generating defines from devicetree nodes with no label") [2] commitf91e9fba51
("device: fix potential truncation of DT-derived device names") Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
09cb9ab259
commit
1bad79ceeb
1 changed files with 2 additions and 1 deletions
|
@ -2431,7 +2431,8 @@ struct net_if_api {
|
||||||
*/
|
*/
|
||||||
#define NET_DEVICE_DT_OFFLOAD_DEFINE(node_id, init_fn, pm_control_fn, \
|
#define NET_DEVICE_DT_OFFLOAD_DEFINE(node_id, init_fn, pm_control_fn, \
|
||||||
data, cfg, prio, api, mtu) \
|
data, cfg, prio, api, mtu) \
|
||||||
Z_NET_DEVICE_OFFLOAD_INIT(node_id, node_id, DT_LABEL(node_id), \
|
Z_NET_DEVICE_OFFLOAD_INIT(node_id, Z_DEVICE_DT_DEV_NAME(node_id), \
|
||||||
|
DT_PROP_OR(node_id, label, NULL), \
|
||||||
init_fn, pm_control_fn, data, cfg, \
|
init_fn, pm_control_fn, data, cfg, \
|
||||||
prio, api, mtu)
|
prio, api, mtu)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue