Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289973
b: refs/heads/master
c: 3ed1326
h: refs/heads/master
i:
  289971: 2937e45
v: v3
  • Loading branch information
Ilan Elias authored and John W. Linville committed Jan 24, 2012
1 parent 6dac001 commit 97fee46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: c4bf98b220cba7a8618405261d69ee53a265110e
refs/heads/master: 3ed1326d2e693d555e62241c2e2209f01506214e
11 changes: 6 additions & 5 deletions trunk/drivers/nfc/nfcwilink.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/nfc.h>
#include <net/nfc/nci.h>
#include <net/nfc/nci_core.h>
Expand All @@ -42,9 +43,9 @@
#define NFCWILINK_REGISTER_TIMEOUT 8000 /* 8 sec */

struct nfcwilink_hdr {
u8 chnl;
u8 opcode;
u16 len;
__u8 chnl;
__u8 opcode;
__le16 len;
} __packed;

struct nfcwilink {
Expand Down Expand Up @@ -212,7 +213,7 @@ static int nfcwilink_send(struct sk_buff *skb)
return -EBUSY;

/* add the ST hdr to the start of the buffer */
hdr.len = skb->len;
hdr.len = cpu_to_le16(skb->len);
memcpy(skb_push(skb, NFCWILINK_HDR_LEN), &hdr, NFCWILINK_HDR_LEN);

/* Insert skb to shared transport layer's transmit queue.
Expand All @@ -239,7 +240,7 @@ static int nfcwilink_probe(struct platform_device *pdev)
{
static struct nfcwilink *drv;
int rc;
u32 protocols;
__u32 protocols;

nfc_dev_dbg(&pdev->dev, "probe entry");

Expand Down

0 comments on commit 97fee46

Please sign in to comment.