Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351889
b: refs/heads/master
c: 6ca5537
h: refs/heads/master
i:
  351887: 68caa3c
v: v3
  • Loading branch information
Waldemar Rymarkiewicz authored and Samuel Ortiz committed Jan 9, 2013
1 parent f697fd7 commit 67af19b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b5193e5da24fb278c68fc0493c0a1073a1b27ab9
refs/heads/master: 6ca55372bf55885e02d17c58cd29ceef045ee699
70 changes: 35 additions & 35 deletions trunk/drivers/nfc/pn533.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,13 @@ static void pn533_recv_response(struct urb *urb)
case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN:
nfc_dev_dbg(&dev->interface->dev, "Urb shutting down with"
" status: %d", urb->status);
nfc_dev_dbg(&dev->interface->dev,
"Urb shutting down with status: %d", urb->status);
dev->wq_in_error = urb->status;
goto sched_wq;
default:
nfc_dev_err(&dev->interface->dev, "Nonzero urb status received:"
" %d", urb->status);
nfc_dev_err(&dev->interface->dev,
"Nonzero urb status received: %d", urb->status);
dev->wq_in_error = urb->status;
goto sched_wq;
}
Expand All @@ -538,8 +538,8 @@ static void pn533_recv_response(struct urb *urb)
}

if (!pn533_rx_frame_is_cmd_response(in_frame, dev->cmd)) {
nfc_dev_err(&dev->interface->dev, "The received frame is not "
"response to the last command");
nfc_dev_err(&dev->interface->dev,
"It it not the response to the last command");
dev->wq_in_error = -EIO;
goto sched_wq;
}
Expand Down Expand Up @@ -572,13 +572,13 @@ static void pn533_recv_ack(struct urb *urb)
case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN:
nfc_dev_dbg(&dev->interface->dev, "Urb shutting down with"
" status: %d", urb->status);
nfc_dev_dbg(&dev->interface->dev,
"Urb shutting down with status: %d", urb->status);
dev->wq_in_error = urb->status;
goto sched_wq;
default:
nfc_dev_err(&dev->interface->dev, "Nonzero urb status received:"
" %d", urb->status);
nfc_dev_err(&dev->interface->dev,
"Nonzero urb status received: %d", urb->status);
dev->wq_in_error = urb->status;
goto sched_wq;
}
Expand All @@ -595,8 +595,8 @@ static void pn533_recv_ack(struct urb *urb)

rc = pn533_submit_urb_for_response(dev, GFP_ATOMIC);
if (rc) {
nfc_dev_err(&dev->interface->dev, "usb_submit_urb failed with"
" result %d", rc);
nfc_dev_err(&dev->interface->dev,
"usb_submit_urb failed with result %d", rc);
dev->wq_in_error = rc;
goto sched_wq;
}
Expand Down Expand Up @@ -1044,12 +1044,12 @@ static void pn533_send_complete(struct urb *urb)
case -ECONNRESET:
case -ENOENT:
case -ESHUTDOWN:
nfc_dev_dbg(&dev->interface->dev, "Urb shutting down with"
" status: %d", urb->status);
nfc_dev_dbg(&dev->interface->dev,
"Urb shutting down with status: %d", urb->status);
break;
default:
nfc_dev_dbg(&dev->interface->dev, "Nonzero urb status received:"
" %d", urb->status);
nfc_dev_dbg(&dev->interface->dev,
"Nonzero urb status received: %d", urb->status);
}
}

Expand Down Expand Up @@ -1753,8 +1753,8 @@ static void pn533_stop_poll(struct nfc_dev *nfc_dev)
del_timer(&dev->listen_timer);

if (!dev->poll_mod_count) {
nfc_dev_dbg(&dev->interface->dev, "Polling operation was not"
" running");
nfc_dev_dbg(&dev->interface->dev,
"Polling operation was not running");
return;
}

Expand Down Expand Up @@ -1813,35 +1813,35 @@ static int pn533_activate_target(struct nfc_dev *nfc_dev,
protocol);

if (dev->poll_mod_count) {
nfc_dev_err(&dev->interface->dev, "Cannot activate while"
" polling");
nfc_dev_err(&dev->interface->dev,
"Cannot activate while polling");
return -EBUSY;
}

if (dev->tgt_active_prot) {
nfc_dev_err(&dev->interface->dev, "There is already an active"
" target");
nfc_dev_err(&dev->interface->dev,
"There is already an active target");
return -EBUSY;
}

if (!dev->tgt_available_prots) {
nfc_dev_err(&dev->interface->dev, "There is no available target"
" to activate");
nfc_dev_err(&dev->interface->dev,
"There is no available target to activate");
return -EINVAL;
}

if (!(dev->tgt_available_prots & (1 << protocol))) {
nfc_dev_err(&dev->interface->dev, "The target does not support"
" the requested protocol %u", protocol);
nfc_dev_err(&dev->interface->dev,
"Target doesn't support requested proto %u",
protocol);
return -EINVAL;
}

if (protocol == NFC_PROTO_NFC_DEP) {
rc = pn533_activate_target_nfcdep(dev);
if (rc) {
nfc_dev_err(&dev->interface->dev, "Error %d when"
" activating target with"
" NFC_DEP protocol", rc);
nfc_dev_err(&dev->interface->dev,
"Activating target with DEP failed %d", rc);
return rc;
}
}
Expand Down Expand Up @@ -1884,8 +1884,8 @@ static void pn533_deactivate_target(struct nfc_dev *nfc_dev,

rc = resp->data[0] & PN533_CMD_RET_MASK;
if (rc != PN533_CMD_RET_SUCCESS)
nfc_dev_err(&dev->interface->dev, "Error 0x%x when releasing"
" the target", rc);
nfc_dev_err(&dev->interface->dev,
"Error 0x%x when releasing the target", rc);

dev_kfree_skb(resp);
return;
Expand Down Expand Up @@ -2181,8 +2181,8 @@ static int pn533_transceive(struct nfc_dev *nfc_dev,
}

if (!dev->tgt_active_prot) {
nfc_dev_err(&dev->interface->dev, "Cannot exchange data if"
" there is no active target");
nfc_dev_err(&dev->interface->dev,
"Can't exchange data if there is no active target");
rc = -EINVAL;
goto error;
}
Expand Down Expand Up @@ -2522,8 +2522,8 @@ static int pn533_probe(struct usb_interface *interface,
}

if (!in_endpoint || !out_endpoint) {
nfc_dev_err(&interface->dev, "Could not find bulk-in or"
" bulk-out endpoint");
nfc_dev_err(&interface->dev,
"Could not find bulk-in or bulk-out endpoint");
rc = -ENODEV;
goto error;
}
Expand Down

0 comments on commit 67af19b

Please sign in to comment.