samsung: minor coding style fixes
This commit is contained in:
@@ -445,7 +445,8 @@ disconnect_3gpp (MMBroadbandBearer *bearer,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
set_unsolicited_result_codes (MMBroadbandBearerSamsung *self, gboolean enable)
|
set_unsolicited_result_codes (MMBroadbandBearerSamsung *self,
|
||||||
|
gboolean enable)
|
||||||
{
|
{
|
||||||
MMBroadbandModemSamsung *modem;
|
MMBroadbandModemSamsung *modem;
|
||||||
MMAtSerialPort *ports[2];
|
MMAtSerialPort *ports[2];
|
||||||
@@ -457,7 +458,7 @@ set_unsolicited_result_codes (MMBroadbandBearerSamsung *self, gboolean enable)
|
|||||||
NULL);
|
NULL);
|
||||||
g_assert (modem != NULL);
|
g_assert (modem != NULL);
|
||||||
|
|
||||||
ipdpact_regex = g_regex_new(
|
ipdpact_regex = g_regex_new (
|
||||||
"\\r\\n%IPDPACT:\\s*(\\d+),\\s*(\\d+),\\s*(\\d+)\\r\\n",
|
"\\r\\n%IPDPACT:\\s*(\\d+),\\s*(\\d+),\\s*(\\d+)\\r\\n",
|
||||||
G_REGEX_RAW | G_REGEX_OPTIMIZE,
|
G_REGEX_RAW | G_REGEX_OPTIMIZE,
|
||||||
0,
|
0,
|
||||||
@@ -657,11 +658,12 @@ mm_broadband_bearer_samsung_new_finish (GAsyncResult *res,
|
|||||||
return MM_BEARER (bearer);
|
return MM_BEARER (bearer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mm_broadband_bearer_samsung_new (MMBroadbandModemSamsung *modem,
|
void
|
||||||
MMBearerProperties *properties,
|
mm_broadband_bearer_samsung_new (MMBroadbandModemSamsung *modem,
|
||||||
GCancellable *cancellable,
|
MMBearerProperties *properties,
|
||||||
GAsyncReadyCallback callback,
|
GCancellable *cancellable,
|
||||||
gpointer user_data)
|
GAsyncReadyCallback callback,
|
||||||
|
gpointer user_data)
|
||||||
{
|
{
|
||||||
g_async_initable_new_async (
|
g_async_initable_new_async (
|
||||||
MM_TYPE_BROADBAND_BEARER_SAMSUNG,
|
MM_TYPE_BROADBAND_BEARER_SAMSUNG,
|
||||||
|
@@ -89,9 +89,9 @@ G_MODULE_EXPORT MMPlugin *
|
|||||||
mm_plugin_create (void)
|
mm_plugin_create (void)
|
||||||
{
|
{
|
||||||
static const gchar *subsystems[] = { "tty", "net", NULL };
|
static const gchar *subsystems[] = { "tty", "net", NULL };
|
||||||
static const mm_uint16_pair products[] = { { 0x04e8, 0x6872},
|
static const mm_uint16_pair products[] = { { 0x04e8, 0x6872 },
|
||||||
{ 0x04e8, 0x6906},
|
{ 0x04e8, 0x6906 },
|
||||||
{0, 0} };
|
{ 0, 0 } };
|
||||||
return MM_PLUGIN (
|
return MM_PLUGIN (
|
||||||
g_object_new (MM_TYPE_PLUGIN_SAMSUNG,
|
g_object_new (MM_TYPE_PLUGIN_SAMSUNG,
|
||||||
MM_PLUGIN_BASE_NAME, "Samsung",
|
MM_PLUGIN_BASE_NAME, "Samsung",
|
||||||
|
Reference in New Issue
Block a user