aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-probe.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-01-31 10:45:54 +0100
committerAleksander Morgado <aleksander@aleksander.es>2020-01-31 15:18:35 +0100
commit9e24226364f9c635160cdb0ca8a404781091ba7b (patch)
treef8aaeddf6c096a231158b3315736b41d459b2c1d /src/mm-port-probe.c
parentaccd1a5841bafc81aa87db46eb35a8255ced4e22 (diff)
port-probe: MMPortProbeAtCommand always has constant command strings
Diffstat (limited to 'src/mm-port-probe.c')
-rw-r--r--src/mm-port-probe.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/mm-port-probe.c b/src/mm-port-probe.c
index f7708f31..1700111f 100644
--- a/src/mm-port-probe.c
+++ b/src/mm-port-probe.c
@@ -1104,35 +1104,35 @@ serial_probe_at (MMPortProbe *self)
}
static const MMPortProbeAtCommand at_probing[] = {
- { (gchar *)"AT", 3, mm_port_probe_response_processor_is_at },
- { (gchar *)"AT", 3, mm_port_probe_response_processor_is_at },
- { (gchar *)"AT", 3, mm_port_probe_response_processor_is_at },
+ { "AT", 3, mm_port_probe_response_processor_is_at },
+ { "AT", 3, mm_port_probe_response_processor_is_at },
+ { "AT", 3, mm_port_probe_response_processor_is_at },
{ NULL }
};
static const MMPortProbeAtCommand vendor_probing[] = {
- { (gchar *)"+CGMI", 3, mm_port_probe_response_processor_string },
- { (gchar *)"+GMI", 3, mm_port_probe_response_processor_string },
- { (gchar *)"I", 3, mm_port_probe_response_processor_string },
+ { "+CGMI", 3, mm_port_probe_response_processor_string },
+ { "+GMI", 3, mm_port_probe_response_processor_string },
+ { "I", 3, mm_port_probe_response_processor_string },
{ NULL }
};
static const MMPortProbeAtCommand product_probing[] = {
- { (gchar *)"+CGMM", 3, mm_port_probe_response_processor_string },
- { (gchar *)"+GMM", 3, mm_port_probe_response_processor_string },
- { (gchar *)"I", 3, mm_port_probe_response_processor_string },
+ { "+CGMM", 3, mm_port_probe_response_processor_string },
+ { "+GMM", 3, mm_port_probe_response_processor_string },
+ { "I", 3, mm_port_probe_response_processor_string },
{ NULL }
};
static const MMPortProbeAtCommand icera_probing[] = {
- { (gchar *)"%IPSYS?", 3, mm_port_probe_response_processor_string },
- { (gchar *)"%IPSYS?", 3, mm_port_probe_response_processor_string },
- { (gchar *)"%IPSYS?", 3, mm_port_probe_response_processor_string },
+ { "%IPSYS?", 3, mm_port_probe_response_processor_string },
+ { "%IPSYS?", 3, mm_port_probe_response_processor_string },
+ { "%IPSYS?", 3, mm_port_probe_response_processor_string },
{ NULL }
};
static const MMPortProbeAtCommand xmm_probing[] = {
- { (gchar *)"+XACT=?", 3, mm_port_probe_response_processor_string },
+ { "+XACT=?", 3, mm_port_probe_response_processor_string },
{ NULL }
};