Browse Source

dev.c: add comment to qmi_request_wait()

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Alexander Couzens 7 months ago
parent
commit
8ff632a048
1 changed files with 6 additions and 0 deletions
  1. 6 0
      dev.c

+ 6 - 0
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;