aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mm-plugin-base.c16
-rw-r--r--src/mm-plugin-base.h5
2 files changed, 8 insertions, 13 deletions
diff --git a/src/mm-plugin-base.c b/src/mm-plugin-base.c
index 8a6f365f..1452c4cb 100644
--- a/src/mm-plugin-base.c
+++ b/src/mm-plugin-base.c
@@ -90,12 +90,12 @@ enum {
/*****************************************************************************/
-gboolean
-mm_plugin_base_get_device_ids (MMPluginBase *self,
- const char *subsys,
- const char *name,
- guint16 *vendor,
- guint16 *product)
+static gboolean
+get_device_ids (MMPluginBase *self,
+ const char *subsys,
+ const char *name,
+ guint16 *vendor,
+ guint16 *product)
{
MMPluginBasePrivate *priv;
GUdevDevice *device = NULL, *parent = NULL;
@@ -318,7 +318,7 @@ apply_pre_probing_filters (MMPluginBase *self,
return TRUE;
}
- mm_plugin_base_get_device_ids (self, subsys, name, &vendor, &product);
+ get_device_ids (self, subsys, name, &vendor, &product);
/* The plugin may specify that only some vendor IDs are supported. If that
* is the case, filter by vendor ID. */
@@ -798,7 +798,7 @@ create_modem (MMPlugin *self,
/* Vendor and Product IDs are really optional, we'll just warn if they
* cannot get loaded */
- if (!mm_plugin_base_get_device_ids (MM_PLUGIN_BASE (self), subsys, name, &vendor, &product))
+ if (!get_device_ids (MM_PLUGIN_BASE (self), subsys, name, &vendor, &product))
mm_warn ("Could not get modem vendor/product ID");
/* Let the plugin create the modem from the port probe results */
diff --git a/src/mm-plugin-base.h b/src/mm-plugin-base.h
index c5d9bbad..804f706f 100644
--- a/src/mm-plugin-base.h
+++ b/src/mm-plugin-base.h
@@ -75,10 +75,5 @@ struct _MMPluginBaseClass {
GType mm_plugin_base_get_type (void);
-gboolean mm_plugin_base_get_device_ids (MMPluginBase *self,
- const char *subsys,
- const char *name,
- guint16 *vendor,
- guint16 *product);
#endif /* MM_PLUGIN_BASE_H */