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

drivers: modem: hl7800: Convert driver to new DT device macros



Convert hl7800 driver:

    NET_DEVICE_OFFLOAD_INIT -> NET_DEVICE_DT_INST_OFFLOAD_DEFINE

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent dd55786f
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -4886,6 +4886,7 @@ static struct net_if_api api_funcs = {
	.init = offload_iface_init,
};

NET_DEVICE_OFFLOAD_INIT(modem_hl7800, "MODEM_HL7800", hl7800_init,
			device_pm_control_nop, &ictx, NULL,
			CONFIG_MODEM_HL7800_INIT_PRIORITY, &api_funcs, MDM_MTU);
NET_DEVICE_DT_INST_OFFLOAD_DEFINE(0, hl7800_init, device_pm_control_nop,
				  &ictx, NULL,
				  CONFIG_MODEM_HL7800_INIT_PRIORITY, &api_funcs,
				  MDM_MTU);