diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2014-06-22 17:29:50 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-06-23 18:12:27 +0200 |
commit | 7c347aa3ec1d5540c23c20dcb5edd3c6ccb28c24 (patch) | |
tree | d60adda1f391e4ae112f057853d7f07426ad5f89 /plugins/option | |
parent | 7752c9920d83059836d010a61e44daa4232c4c65 (diff) |
port: store parent sysfs path in each MMPort
Diffstat (limited to 'plugins/option')
-rw-r--r-- | plugins/option/mm-plugin-hso.c | 6 | ||||
-rw-r--r-- | plugins/option/mm-plugin-option.c | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/option/mm-plugin-hso.c b/plugins/option/mm-plugin-hso.c index 1ea0aa28..1cc2bd7b 100644 --- a/plugins/option/mm-plugin-hso.c +++ b/plugins/option/mm-plugin-hso.c @@ -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); diff --git a/plugins/option/mm-plugin-option.c b/plugins/option/mm-plugin-option.c index aa6ddc3e..010e597b 100644 --- a/plugins/option/mm-plugin-option.c +++ b/plugins/option/mm-plugin-option.c @@ -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); |