summaryrefslogtreecommitdiff
path: root/drivers/qmimodem
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-06-25 01:23:14 -0700
committerMarcel Holtmann <marcel@holtmann.org>2012-06-25 01:23:14 -0700
commit8f2549416a8cae5644fc27df32c259fb68b20a00 (patch)
tree3dfe7b01f1ccc1fc786a49c58f1029c0b374fa75 /drivers/qmimodem
parent2c00dfb0fe743a717d479f1863cd9b21fcb6339c (diff)
qmimodem: Use unsigned int for tid to make GUINT_TO_POINTER happy
Diffstat (limited to 'drivers/qmimodem')
-rw-r--r--drivers/qmimodem/qmi.c11
-rw-r--r--drivers/qmimodem/qmi.h2
2 files changed, 8 insertions, 5 deletions
diff --git a/drivers/qmimodem/qmi.c b/drivers/qmimodem/qmi.c
index 2453b864..bca40511 100644
--- a/drivers/qmimodem/qmi.c
+++ b/drivers/qmimodem/qmi.c
@@ -583,6 +583,7 @@ static void handle_packet(struct qmi_device *device,
if (hdr->service == QMI_SERVICE_CONTROL) {
const struct qmi_control_hdr *control = buf;
const struct qmi_message_hdr *msg;
+ unsigned int tid;
GList *list;
/* Ignore control messages with client identifier */
@@ -596,6 +597,8 @@ static void handle_packet(struct qmi_device *device,
data = buf + QMI_CONTROL_HDR_SIZE + QMI_MESSAGE_HDR_SIZE;
+ tid = control->transaction;
+
if (control->type == 0x02 && control->transaction == 0x00) {
handle_indication(device, hdr->service, hdr->client,
message, length, data);
@@ -603,8 +606,7 @@ static void handle_packet(struct qmi_device *device,
}
list = g_queue_find_custom(device->control_queue,
- GUINT_TO_POINTER(control->transaction),
- __request_compare);
+ GUINT_TO_POINTER(tid), __request_compare);
if (!list)
return;
@@ -614,7 +616,7 @@ static void handle_packet(struct qmi_device *device,
} else {
const struct qmi_service_hdr *service = buf;
const struct qmi_message_hdr *msg;
- uint16_t tid;
+ unsigned int tid;
GList *list;
msg = buf + QMI_SERVICE_HDR_SIZE;
@@ -1679,8 +1681,9 @@ uint16_t qmi_service_send(struct qmi_service *service,
return hdr->transaction;
}
-bool qmi_service_cancel(struct qmi_service *service, uint16_t tid)
+bool qmi_service_cancel(struct qmi_service *service, uint16_t id)
{
+ unsigned int tid = id;
struct qmi_device *device;
struct service_send_data *data;
struct qmi_request *req;
diff --git a/drivers/qmimodem/qmi.h b/drivers/qmimodem/qmi.h
index 40684df8..b2aa9d60 100644
--- a/drivers/qmimodem/qmi.h
+++ b/drivers/qmimodem/qmi.h
@@ -139,7 +139,7 @@ uint16_t qmi_service_send(struct qmi_service *service,
uint16_t message, struct qmi_param *param,
qmi_result_func_t func,
void *user_data, qmi_destroy_func_t destroy);
-bool qmi_service_cancel(struct qmi_service *service, uint16_t tid);
+bool qmi_service_cancel(struct qmi_service *service, uint16_t id);
uint16_t qmi_service_register(struct qmi_service *service,
uint16_t message, qmi_result_func_t func,