Skip to content

Commit 1e15ca9

Browse files
mniestrojnashif
authored andcommitted
drivers: modem: wncm14a2a: Convert driver to new DT device macros
Convert wncm14a2a driver: NET_DEVICE_OFFLOAD_INIT -> NET_DEVICE_DT_INST_OFFLOAD_DEFINE Signed-off-by: Marcin Niestroj <[email protected]>
1 parent 2ae9c26 commit 1e15ca9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

drivers/modem/wncm14a2a.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,7 +1848,8 @@ static struct net_if_api api_funcs = {
18481848
.init = offload_iface_init,
18491849
};
18501850

1851-
NET_DEVICE_OFFLOAD_INIT(modem_wncm14a2a, "MODEM_WNCM14A2A",
1852-
wncm14a2a_init, device_pm_control_nop, &ictx,
1853-
NULL, CONFIG_MODEM_WNCM14A2A_INIT_PRIORITY, &api_funcs,
1854-
MDM_MAX_DATA_LENGTH);
1851+
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, wncm14a2a_init, device_pm_control_nop,
1852+
&ictx, NULL,
1853+
CONFIG_MODEM_WNCM14A2A_INIT_PRIORITY,
1854+
&api_funcs,
1855+
MDM_MAX_DATA_LENGTH);

0 commit comments

Comments
 (0)