summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorJonas Bonn <jonas@norrbonn.se>2019-09-24 13:33:31 +0200
committerDenis Kenzior <denkenz@gmail.com>2019-09-24 09:57:39 -0500
commit4e4c209c0b33754ee08c22b7680b52a176267056 (patch)
tree72fb885e92eb06a9e98435e935600ac88d67a503 /plugins
parent875eb230003145ecc9f71d7352505ac80c566799 (diff)
downloadofono-4e4c209c0b33754ee08c22b7680b52a176267056.tar.gz
ublox: raise call to open device
Diffstat (limited to 'plugins')
-rw-r--r--plugins/ublox.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/plugins/ublox.c b/plugins/ublox.c
index b65bc52a..9ee38a6b 100644
--- a/plugins/ublox.c
+++ b/plugins/ublox.c
@@ -102,13 +102,6 @@ static void ublox_remove(struct ofono_modem *modem)
g_free(data);
}
-static GAtChat *open_device(struct ofono_modem *modem,
- const char *key, char *debug)
-{
- return at_util_open_device(modem, key, ublox_debug, debug,
- NULL);
-}
-
static void cfun_enable(gboolean ok, GAtResult *result, gpointer user_data)
{
struct ofono_modem *modem = user_data;
@@ -236,17 +229,20 @@ static int ublox_enable(struct ofono_modem *modem)
DBG("%p", modem);
- data->aux = open_device(modem, "Aux", "Aux: ");
+ data->aux = at_util_open_device(modem, "Aux",
+ ublox_debug, "Aux: ", NULL);
/* If this is a serial modem then the device may be behind
* the 'Device' attribute instead...
*/
if (data->aux == NULL) {
- data->aux = open_device(modem, "Device", "Aux: ");
+ data->aux = at_util_open_device(modem, "Device",
+ ublox_debug, "Aux: ", NULL);
if (data->aux == NULL)
return -EINVAL;
}
- data->modem = open_device(modem, "Modem", "Modem: ");
+ data->modem = at_util_open_device(modem, "Modem",
+ ublox_debug, "Modem: ", NULL);
if (data->modem) {
g_at_chat_set_slave(data->modem, data->aux);
g_at_chat_send(data->modem, "ATE0 +CMEE=1", none_prefix,