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:
Marcin Niestroj 2021-02-10 21:41:58 +01:00 committed by Anas Nashif
commit 283f25f596

View file

@ -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);