qcdm-serial-port: no need to pass port type when creating the object
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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,
|
||||
|
@@ -64,4 +64,3 @@ void mm_qcdm_serial_port_queue_command_cached (MMQcdmSerialPort *self,
|
||||
gpointer user_data);
|
||||
|
||||
#endif /* MM_QCDM_SERIAL_PORT_H */
|
||||
|
||||
|
@@ -477,4 +477,3 @@ int main (int argc, char **argv)
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user