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

We'll just specify the port is AT, not primary or secondary
This commit is contained in:
Aleksander Morgado
2012-03-15 14:15:05 +01:00
parent f8cc4114ad
commit 11962711e4
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ mm_base_modem_grab_port (MMBaseModem *self,
int i;
/* AT port */
port = MM_PORT (mm_at_serial_port_new (name, ptype));
port = MM_PORT (mm_at_serial_port_new (name));
/* Set common response parser */
mm_at_serial_port_set_response_parser (MM_AT_SERIAL_PORT (port),
+1 -2
View File
@@ -588,8 +588,7 @@ serial_open_at (MMPortProbe *self)
/* Create AT serial port if not done before */
if (!task->serial) {
task->serial = MM_SERIAL_PORT (mm_at_serial_port_new (self->priv->name,
MM_PORT_TYPE_PRIMARY));
task->serial = MM_SERIAL_PORT (mm_at_serial_port_new (self->priv->name));
if (!task->serial) {
port_probe_run_task_complete (
task,
+1
View File
@@ -31,6 +31,7 @@ typedef enum { /*< underscore_name=mm_port_type >*/
MM_PORT_TYPE_UNKNOWN = 0x0,
MM_PORT_TYPE_AT,
MM_PORT_TYPE_IGNORED,
MM_PORT_TYPE_AT,
MM_PORT_TYPE_QCDM,
MM_PORT_TYPE_LAST = MM_PORT_TYPE_QCDM