Loading drivers/staging/greybus/ap.c +5 −17 Original line number Diff line number Diff line Loading @@ -169,10 +169,14 @@ static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg) return svc_msg; } static void process_ap_message(struct ap_msg *ap_msg) static void ap_process_event(struct work_struct *work) { struct svc_msg *svc_msg; struct greybus_host_device *hd; struct ap_msg *ap_msg; ap_msg = container_of(work, struct ap_msg, event); hd = ap_msg->hd; /* Turn the "raw" data into a real message */ svc_msg = convert_ap_message(ap_msg); Loading @@ -181,11 +185,6 @@ static void process_ap_message(struct ap_msg *ap_msg) return; } hd = ap_msg->hd; /* Pass the message to the host controller */ // ap_msg->hd->driver->ap_msg(svc_msg, ap_msg->hd); /* Look at the message to figure out what to do with it */ switch (svc_msg->header.type) { case SVC_FUNCTION_HANDSHAKE: Loading Loading @@ -214,17 +213,6 @@ static void process_ap_message(struct ap_msg *ap_msg) svc_msg->header.type); } } static void ap_process_event(struct work_struct *work) { struct ap_msg *ap_msg; ap_msg = container_of(work, struct ap_msg, event); process_ap_message(ap_msg); /* clean the message up */ kfree(ap_msg->data); kfree(ap_msg); Loading Loading
drivers/staging/greybus/ap.c +5 −17 Original line number Diff line number Diff line Loading @@ -169,10 +169,14 @@ static struct svc_msg *convert_ap_message(struct ap_msg *ap_msg) return svc_msg; } static void process_ap_message(struct ap_msg *ap_msg) static void ap_process_event(struct work_struct *work) { struct svc_msg *svc_msg; struct greybus_host_device *hd; struct ap_msg *ap_msg; ap_msg = container_of(work, struct ap_msg, event); hd = ap_msg->hd; /* Turn the "raw" data into a real message */ svc_msg = convert_ap_message(ap_msg); Loading @@ -181,11 +185,6 @@ static void process_ap_message(struct ap_msg *ap_msg) return; } hd = ap_msg->hd; /* Pass the message to the host controller */ // ap_msg->hd->driver->ap_msg(svc_msg, ap_msg->hd); /* Look at the message to figure out what to do with it */ switch (svc_msg->header.type) { case SVC_FUNCTION_HANDSHAKE: Loading Loading @@ -214,17 +213,6 @@ static void process_ap_message(struct ap_msg *ap_msg) svc_msg->header.type); } } static void ap_process_event(struct work_struct *work) { struct ap_msg *ap_msg; ap_msg = container_of(work, struct ap_msg, event); process_ap_message(ap_msg); /* clean the message up */ kfree(ap_msg->data); kfree(ap_msg); Loading