port-probe: explicitly report GPS port type if port flagged

And remove all custom logic from all plugins that were doing just that.
This commit is contained in:
Aleksander Morgado
2018-08-10 04:19:13 +00:00
committed by Dan Williams
parent 9c0a557f91
commit 86f840d97b
5 changed files with 3 additions and 47 deletions
-8
View File
@@ -152,14 +152,6 @@ grab_port (MMPlugin *self,
mm_port_probe_get_port_subsys (probe),
mm_port_probe_get_port_name (probe));
pflags = MM_PORT_SERIAL_AT_FLAG_PPP;
} else if (mm_kernel_device_get_property_as_boolean (mm_port_probe_peek_port (probe),
"ID_MM_PORT_TYPE_GPS")) {
mm_dbg ("(%s/%s)' Port flagged as GPS",
mm_port_probe_get_port_subsys (probe),
mm_port_probe_get_port_name (probe));
/* Not an AT port, but the port to grab GPS traces */
g_warn_if_fail (ptype == MM_PORT_TYPE_UNKNOWN);
ptype = MM_PORT_TYPE_GPS;
}
return mm_base_modem_grab_port (modem,