From 2abcb8580913965ca0e8d727c65c56e655f2b004 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 22 Oct 2014 21:21:49 -0500 Subject: [PATCH] telitmodem: Fix a few coding style violations --- drivers/telitmodem/location-reporting.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/telitmodem/location-reporting.c b/drivers/telitmodem/location-reporting.c index edbd74f7..d16c58f0 100644 --- a/drivers/telitmodem/location-reporting.c +++ b/drivers/telitmodem/location-reporting.c @@ -71,7 +71,8 @@ static void telit_gps_disable_cb(gboolean ok, GAtResult *result, CALLBACK_WITH_SUCCESS(cb, cbd->data); } -static void telit_location_reporting_disable(struct ofono_location_reporting *lr, +static void telit_location_reporting_disable( + struct ofono_location_reporting *lr, ofono_location_reporting_disable_cb_t cb, void *data) { @@ -174,8 +175,8 @@ static void telit_gps_enable_cb(gboolean ok, GAtResult *result, return; } - if( g_at_chat_send(gd->chat, "AT$GPSNMUN=1,0,0,0,0,0,0", - none_prefix, telit_gps_ctl_cb, cbd, g_free ) > 0 ) + if (g_at_chat_send(gd->chat, "AT$GPSNMUN=1,0,0,0,0,0,0", + none_prefix, telit_gps_ctl_cb, cbd, g_free) > 0) return; CALLBACK_WITH_FAILURE(cb, -1, cbd->data); @@ -215,7 +216,7 @@ static void telit_portcfg_check_cb(gboolean ok, GAtResult *result, if (!g_at_result_iter_next_number(&iter, ¤t_portcfg)) goto fail; - if ( current_portcfg != 8 ) { + if (current_portcfg != 8) { ofono_warn("Unable to start GPS, modem configuration invalid"); ofono_warn("Refer to doc/telit-modem.txt section HE910/GPS"); goto fail;