drivers: wifi: eswifi: Convert driver to new DT device macros
Convert eswifi driver: NET_DEVICE_OFFLOAD_INIT -> NET_DEVICE_DT_INST_OFFLOAD_DEFINE Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com>
This commit is contained in:
parent
5701ebb036
commit
283f25f596
1 changed files with 5 additions and 3 deletions
|
@ -689,6 +689,8 @@ static const struct net_wifi_mgmt_offload eswifi_offload_api = {
|
|||
.ap_disable = eswifi_mgmt_ap_disable,
|
||||
};
|
||||
|
||||
NET_DEVICE_OFFLOAD_INIT(eswifi_mgmt, DT_INST_LABEL(0),
|
||||
eswifi_init, device_pm_control_nop, &eswifi0, NULL,
|
||||
CONFIG_WIFI_INIT_PRIORITY, &eswifi_offload_api, 1500);
|
||||
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, eswifi_init, device_pm_control_nop,
|
||||
&eswifi0, NULL,
|
||||
CONFIG_WIFI_INIT_PRIORITY,
|
||||
&eswifi_offload_api,
|
||||
1500);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue