port: store parent sysfs path in each MMPort

This commit is contained in:
Aleksander Morgado
2014-06-22 17:29:50 +02:00
parent 7752c9920d
commit 7c347aa3ec
20 changed files with 75 additions and 18 deletions

View File

@@ -134,12 +134,11 @@ grab_port (MMPlugin *self,
MMPortProbe *probe,
GError **error)
{
const gchar *name, *subsys;
const gchar *subsys;
MMPortSerialAtFlag pflags = MM_PORT_SERIAL_AT_FLAG_NONE;
MMPortType port_type;
subsys = mm_port_probe_get_port_subsys (probe);
name = mm_port_probe_get_port_name (probe);
port_type = mm_port_probe_get_port_type (probe);
/* Detect AT port types */
@@ -161,7 +160,8 @@ grab_port (MMPlugin *self,
return mm_base_modem_grab_port (modem,
subsys,
name,
mm_port_probe_get_port_name (probe),
mm_port_probe_get_parent_path (probe),
port_type,
pflags,
error);

View File

@@ -80,6 +80,7 @@ grab_port (MMPlugin *self,
return mm_base_modem_grab_port (modem,
mm_port_probe_get_port_subsys (probe),
mm_port_probe_get_port_name (probe),
mm_port_probe_get_parent_path (probe),
MM_PORT_TYPE_AT, /* we only allow AT ports here */
pflags,
error);