Skip to content

Commit 283f25f

Browse files
mniestrojnashif
authored andcommitted
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 <[email protected]>
1 parent 5701ebb commit 283f25f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

drivers/wifi/eswifi/eswifi_core.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,8 @@ static const struct net_wifi_mgmt_offload eswifi_offload_api = {
689689
.ap_disable = eswifi_mgmt_ap_disable,
690690
};
691691

692-
NET_DEVICE_OFFLOAD_INIT(eswifi_mgmt, DT_INST_LABEL(0),
693-
eswifi_init, device_pm_control_nop, &eswifi0, NULL,
694-
CONFIG_WIFI_INIT_PRIORITY, &eswifi_offload_api, 1500);
692+
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, eswifi_init, device_pm_control_nop,
693+
&eswifi0, NULL,
694+
CONFIG_WIFI_INIT_PRIORITY,
695+
&eswifi_offload_api,
696+
1500);

0 commit comments

Comments
 (0)