dev.c: add comment to qmi_request_wait()
authorAlexander Couzens <lynxis@fe80.eu>
Sun, 1 Oct 2023 16:48:19 +0000 (18:48 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Sat, 9 Mar 2024 20:15:21 +0000 (21:15 +0100)
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
dev.c

diff --git a/dev.c b/dev.c
index 031b0c0dfa672950f67455550ff94b93af4cc29f..ebfbbad0bd68a000c1962036fadb79a47bf08a8a 100644 (file)
--- a/dev.c
+++ b/dev.c
@@ -249,6 +249,12 @@ void qmi_request_cancel(struct qmi_dev *qmi, struct qmi_request *req)
        __qmi_request_complete(qmi, req, NULL);
 }
 
+/*! Run uloop until the request has been completed
+ *
+ * \param qmi the qmi device
+ * \param req the request to wait for
+ * \return req->ret (0 on success)
+ */
 int qmi_request_wait(struct qmi_dev *qmi, struct qmi_request *req)
 {
        bool complete = false;