aboutsummaryrefslogtreecommitdiff
path: root/plugins/option/mm-plugin-hso.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-03-27 19:40:03 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-09-29 15:43:05 +0200
commitaa4577dfb9b5a7863a4939ec2409eae392e2fc0c (patch)
treefe696d759164829dcad1a05e02e850b5ba4369e9 /plugins/option/mm-plugin-hso.c
parent1f813c4e9691f22017802278ab6f5b1475185113 (diff)
core: new kernel device object instead of an explicit GUdevDevice
Instead of relying constantly on GUdevDevice objects reported by GUdev, we now use a new generic object (MMKernelDevice) for which we provide an initial GUdev based backend.
Diffstat (limited to 'plugins/option/mm-plugin-hso.c')
-rw-r--r--plugins/option/mm-plugin-hso.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/option/mm-plugin-hso.c b/plugins/option/mm-plugin-hso.c
index 5b9bcbd5..c606cc9a 100644
--- a/plugins/option/mm-plugin-hso.c
+++ b/plugins/option/mm-plugin-hso.c
@@ -56,13 +56,13 @@ hso_custom_init (MMPortProbe *probe,
GAsyncReadyCallback callback,
gpointer user_data)
{
- GUdevDevice *udev_port;
+ MMKernelDevice *kernel_port;
GSimpleAsyncResult *result;
const gchar *subsys, *sysfs_path;
subsys = mm_port_probe_get_port_subsys (probe);
- udev_port = mm_port_probe_peek_port (probe);
- sysfs_path = g_udev_device_get_sysfs_path (udev_port);
+ kernel_port = mm_port_probe_peek_port (probe);
+ sysfs_path = mm_kernel_device_get_sysfs_path (kernel_port);
if (g_str_equal (subsys, "tty")) {
gchar *hsotype_path;