Commit 283f25f5 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Anas Nashif
Browse files

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: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent 5701ebb0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -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);