samsung: drop PORT_TYPE_ECM
Isn't really needed since it's just the same as any other net device port type.
This commit is contained in:
@@ -973,12 +973,12 @@ grab_port (MMModem *modem,
|
||||
MMPort *port = NULL;
|
||||
|
||||
if (suggested_type == MM_PORT_TYPE_UNKNOWN) {
|
||||
if(g_str_has_prefix(name, "usb"))
|
||||
ptype = MM_PORT_TYPE_ECM;
|
||||
else if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_PRIMARY))
|
||||
if (!strcmp (subsys, "tty")) {
|
||||
if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_PRIMARY))
|
||||
ptype = MM_PORT_TYPE_PRIMARY;
|
||||
else if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_SECONDARY))
|
||||
else if (!mm_generic_gsm_get_at_port (gsm, MM_PORT_TYPE_SECONDARY))
|
||||
ptype = MM_PORT_TYPE_SECONDARY;
|
||||
}
|
||||
} else
|
||||
ptype = suggested_type;
|
||||
|
||||
|
@@ -68,8 +68,6 @@ mm_port_type_to_name (MMPortType ptype)
|
||||
return "primary";
|
||||
case MM_PORT_TYPE_SECONDARY:
|
||||
return "secondary";
|
||||
case MM_PORT_TYPE_ECM:
|
||||
return "ECM";
|
||||
case MM_PORT_TYPE_IGNORED:
|
||||
return "ignored";
|
||||
case MM_PORT_TYPE_QCDM:
|
||||
|
@@ -32,7 +32,6 @@ typedef enum {
|
||||
MM_PORT_TYPE_UNKNOWN = 0x0,
|
||||
MM_PORT_TYPE_PRIMARY,
|
||||
MM_PORT_TYPE_SECONDARY,
|
||||
MM_PORT_TYPE_ECM,
|
||||
MM_PORT_TYPE_IGNORED,
|
||||
MM_PORT_TYPE_QCDM,
|
||||
|
||||
|
Reference in New Issue
Block a user