aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2017-02-09 00:24:06 +0100
committerAleksander Morgado <aleksander@aleksander.es>2017-02-09 10:20:27 +0100
commit368f423ae0531dbcb7c5890030f7104ee6f199ee (patch)
treeb6b91e0556ce49fe45c9178212748ead01b8afa8
parentad3e4cd6d9e7c032d449b27c26b185024ca2993b (diff)
downloadexternal_libqmi-368f423ae0531dbcb7c5890030f7104ee6f199ee.zip
external_libqmi-368f423ae0531dbcb7c5890030f7104ee6f199ee.tar.gz
external_libqmi-368f423ae0531dbcb7c5890030f7104ee6f199ee.tar.bz2
qmi-firmware-update: avoid using deprecated qmi_device_close()
-rw-r--r--src/qmi-firmware-update/qfu-reseter.c2
-rw-r--r--src/qmi-firmware-update/qfu-updater.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/qmi-firmware-update/qfu-reseter.c b/src/qmi-firmware-update/qfu-reseter.c
index 7fc0c68..d7c8d79 100644
--- a/src/qmi-firmware-update/qfu-reseter.c
+++ b/src/qmi-firmware-update/qfu-reseter.c
@@ -75,7 +75,7 @@ run_context_free (RunContext *ctx)
g_object_unref (ctx->qmi_client);
}
if (ctx->qmi_device) {
- qmi_device_close (ctx->qmi_device, NULL);
+ qmi_device_close_async (ctx->qmi_device, 10, NULL, NULL, NULL);
g_object_unref (ctx->qmi_device);
}
g_list_free_full (ctx->ttys, (GDestroyNotify) g_object_unref);
diff --git a/src/qmi-firmware-update/qfu-updater.c b/src/qmi-firmware-update/qfu-updater.c
index ca22281..bbbb19d 100644
--- a/src/qmi-firmware-update/qfu-updater.c
+++ b/src/qmi-firmware-update/qfu-updater.c
@@ -174,7 +174,7 @@ run_context_free (RunContext *ctx)
g_object_unref (ctx->qmi_client);
}
if (ctx->qmi_device) {
- qmi_device_close (ctx->qmi_device, NULL);
+ qmi_device_close_async (ctx->qmi_device, 10, NULL, NULL, NULL);
g_object_unref (ctx->qmi_device);
}
if (ctx->current_image)
@@ -774,7 +774,7 @@ run_context_step_cleanup_qmi_device (GTask *task)
run_context_step_next_no_idle (task, ctx->step + 1);
/* After the wait operation has been started, we do run the close */
- qmi_device_close (tmp, NULL);
+ qmi_device_close_async (tmp, 10, NULL, NULL, NULL);
g_object_unref (tmp);
}