Open Source Telephony
 help / color / mirror / Atom feed
From: Bing Jupiter <jupiter.hce@gmail.com>
To: ofono@ofono.org
Subject: [PATCH v1 5/5] Use tabs as Denis required
Date: Tue, 23 Feb 2021 15:46:53 +1100	[thread overview]
Message-ID: <20210223044653.4933-6-jupiter.hce@gmail.com> (raw)
In-Reply-To: <20210223044653.4933-1-jupiter.hce@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4425 bytes --]

From: Jupiter <jupiter.hce@gmail.com>

---
 drivers/atmodem/vendor.h |  2 +-
 drivers/qmimodem/gprs.c  | 26 +++++++++++++-------------
 plugins/gobi.c           | 14 +++++++-------
 plugins/udevng.c         |  6 +++---
 4 files changed, 24 insertions(+), 24 deletions(-)

diff --git a/drivers/atmodem/vendor.h b/drivers/atmodem/vendor.h
index 38613679..db9fa263 100644
--- a/drivers/atmodem/vendor.h
+++ b/drivers/atmodem/vendor.h
@@ -48,7 +48,7 @@ enum ofono_vendor {
 	OFONO_VENDOR_QUECTEL_EC2X,
 	OFONO_VENDOR_QUECTEL_SERIAL,
 	OFONO_VENDOR_UBLOX,
-    OFONO_VENDOR_UBLOX_SARA_R4,
+	OFONO_VENDOR_UBLOX_SARA_R4,
 	OFONO_VENDOR_XMM,
 	OFONO_VENDOR_GEMALTO,
 };
diff --git a/drivers/qmimodem/gprs.c b/drivers/qmimodem/gprs.c
index 64d90257..90203dd3 100644
--- a/drivers/qmimodem/gprs.c
+++ b/drivers/qmimodem/gprs.c
@@ -36,7 +36,7 @@
 #include "qmimodem.h"
 
 struct gprs_data {
-    unsigned int vendor;
+	unsigned int vendor;
 	struct qmi_device *dev;
 	struct qmi_service *nas;
 	struct qmi_service *wds;
@@ -286,17 +286,17 @@ static void qmi_set_attached(struct ofono_gprs *gprs, int attached,
 
 	DBG("attached %d", attached);
 
-    if (data->vendor == OFONO_VENDOR_UBLOX_SARA_R4) {
-        /* This assumes neither 'attach' nor 'detach' are
-         * necessary... if 'attach' is required, then you'll
-         * need to make this section conditional on the action
-         * being 'detach'
-         */
-	    DBG("Debug vendor = OFONO_VENDOR_UBLOX_SARA_R4");
-        CALLBACK_WITH_SUCCESS(cb, cbd->data);
-        g_free(cbd);
-        return;
-    }
+	if (data->vendor == OFONO_VENDOR_UBLOX_SARA_R4) {
+	/* This assumes neither 'attach' nor 'detach' are
+	 * necessary... if 'attach' is required, then you'll
+	 * need to make this section conditional on the action
+	 * being 'detach'
+	 */
+		DBG("Debug vendor = OFONO_VENDOR_UBLOX_SARA_R4");
+		CALLBACK_WITH_SUCCESS(cb, cbd->data);
+		g_free(cbd);
+		return;
+	}
     
 	if (attached)
 		action = QMI_NAS_ATTACH_ACTION_ATTACH;
@@ -420,7 +420,7 @@ static int qmi_gprs_probe(struct ofono_gprs *gprs,
 	DBG("");
 
 	data = g_new0(struct gprs_data, 1);
-    data->vendor = vendor;
+	data->vendor = vendor;
 
 	ofono_gprs_set_data(gprs, data);
 
diff --git a/plugins/gobi.c b/plugins/gobi.c
index 5472dd83..3ca739d6 100644
--- a/plugins/gobi.c
+++ b/plugins/gobi.c
@@ -497,16 +497,16 @@ static void gobi_post_online(struct ofono_modem *modem)
 	struct gobi_data *data = ofono_modem_get_data(modem);
 	struct ofono_gprs *gprs;
 	struct ofono_gprs_context *gc;
-    const char* quirk;
-    unsigned int vendor = 0;
+	const char* quirk;
+	unsigned int vendor = 0;
 
 	DBG("%p", modem);
 
-    quirk = ofono_modem_get_string(modem, "Quirk");
-    if (quirk) {
-	    DBG("Debug: vendor = OFONO_VENDOR_UBLOX_SARA_R4");
-        vendor = OFONO_VENDOR_UBLOX_SARA_R4;
-    }
+	quirk = ofono_modem_get_string(modem, "Quirk");
+	if (quirk) {
+		DBG("Debug: vendor = OFONO_VENDOR_UBLOX_SARA_R4");
+		vendor = OFONO_VENDOR_UBLOX_SARA_R4;
+	}
 
 	if (data->features & GOBI_NAS) {
 		ofono_netreg_create(modem, 0, "qmimodem", data->device);
diff --git a/plugins/udevng.c b/plugins/udevng.c
index 63d95055..9941145f 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -1224,7 +1224,7 @@ static gboolean setup_ubloxqmi(struct modem_info *modem) {
 
 	ofono_modem_set_string(modem->modem, "Device", qmi);
 	ofono_modem_set_string(modem->modem, "NetworkInterface", net);
-    ofono_modem_set_string(modem->modem, "Quirk", "SARAR4");
+	ofono_modem_set_string(modem->modem, "Quirk", "SARAR4");
 
 	DBG("gps=%s aux=%s", gps, aux);
 
@@ -1480,7 +1480,7 @@ static struct {
 	{ "quectel",	setup_quectel	},
 	{ "quectelqmi",	setup_quectelqmi},
 	{ "ublox",	setup_ublox	},
-    { "ubloxqmi",   setup_ubloxqmi  },
+	{ "ubloxqmi",   setup_ubloxqmi  },
 	{ "gemalto",	setup_gemalto	},
 	{ "xmm7xxx",	setup_xmm7xxx	},
 	{ "mbim",	setup_mbim	},
@@ -1890,7 +1890,7 @@ static struct {
 	{ "ublox",	"cdc_ncm",	"1546", "110a"	},
 	{ "ublox",	"rndis_host",	"1546", "1146"	},
 	{ "ublox",	"cdc_acm",	"1546", "1146"	},
-    { "ubloxqmi",   "qmi_wwan", "05c6", "90b2"  },
+	{ "ubloxqmi",   "qmi_wwan", "05c6", "90b2"  },
 	{ "gemalto",	"option",	"1e2d",	"0053"	},
 	{ "gemalto",	"cdc_wdm",	"1e2d",	"0053"	},
 	{ "gemalto",	"qmi_wwan",	"1e2d",	"0053"	},
-- 
2.25.1

  parent reply	other threads:[~2021-02-23  4:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-23  4:46 [PATCH v1 0/5] oFono uBlox SARA R4 QMI support Bing Jupiter
2021-02-23  4:46 ` [PATCH v1 1/5] Change 1: " Bing Jupiter
2021-02-23  4:46 ` [PATCH v1 2/5] Change 2: Add SARA R4 vendor ID Bing Jupiter
2021-02-23  4:46 ` [PATCH v1 3/5] Change 3: Check SARA R4 vendor ID, need to make it conditional on the actions being attach and detach Bing Jupiter
2021-02-23  4:46 ` [PATCH v1 4/5] Change 4: Add SARA R4 vendor and enable vendor in gprs create Bing Jupiter
2021-02-23  4:46 ` Bing Jupiter [this message]
2021-02-23 20:08   ` [PATCH v1 5/5] Use tabs as Denis required Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210223044653.4933-6-jupiter.hce@gmail.com \
    --to=jupiter.hce@gmail.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox