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
+3
View File
@@ -1596,6 +1596,9 @@ mm_port_probe_get_port_type (MMPortProbe *self)
self->priv->is_at)
return MM_PORT_TYPE_AT;
if (self->priv->is_gps)
return MM_PORT_TYPE_GPS;
return MM_PORT_TYPE_UNKNOWN;
}