PN533_CMD_RESPONSE(dev->cmd->code));
}
-static int pn533_send_async_complete(struct pn533 *dev);
-
-static void pn533_wq_cmd_complete(struct work_struct *work)
-{
- struct pn533 *dev = container_of(work, struct pn533, cmd_complete_work);
- int rc;
-
- rc = pn533_send_async_complete(dev);
- if (rc != -EINPROGRESS)
- queue_work(dev->wq, &dev->cmd_work);
-}
-
static void pn533_recv_response(struct urb *urb)
{
struct pn533 *dev = urb->context;
return rc;
}
+static void pn533_wq_cmd_complete(struct work_struct *work)
+{
+ struct pn533 *dev = container_of(work, struct pn533, cmd_complete_work);
+ int rc;
+
+ rc = pn533_send_async_complete(dev);
+ if (rc != -EINPROGRESS)
+ queue_work(dev->wq, &dev->cmd_work);
+}
+
static void pn533_wq_cmd(struct work_struct *work)
{
struct pn533 *dev = container_of(work, struct pn533, cmd_work);