qcdm-serial-port: no need to pass port type when creating the object

This commit is contained in:
Aleksander Morgado
2012-02-13 12:27:45 +01:00
parent 44e5ebfec3
commit f8cc4114ad
4 changed files with 2 additions and 5 deletions

View File

@@ -229,7 +229,7 @@ mm_base_modem_grab_port (MMBaseModem *self,
if (ptype == MM_PORT_TYPE_QCDM) {
/* QCDM port */
port = MM_PORT (mm_qcdm_serial_port_new (name, ptype));
port = MM_PORT (mm_qcdm_serial_port_new (name));
if (!self->priv->qcdm)
self->priv->qcdm = g_object_ref (port);
} else {

View File

@@ -226,8 +226,7 @@ serial_probe_qcdm (MMPortProbe *self)
}
/* Open the QCDM port */
task->serial = MM_SERIAL_PORT (mm_qcdm_serial_port_new (self->priv->name,
MM_PORT_TYPE_PRIMARY));
task->serial = MM_SERIAL_PORT (mm_qcdm_serial_port_new (self->priv->name));
if (!task->serial) {
port_probe_run_task_complete (
task,

View File

@@ -64,4 +64,3 @@ void mm_qcdm_serial_port_queue_command_cached (MMQcdmSerialPort *self,
gpointer user_data);
#endif /* MM_QCDM_SERIAL_PORT_H */

View File

@@ -477,4 +477,3 @@ int main (int argc, char **argv)
return result;
}