diff options
author | Johannes Berg <johannes.berg@intel.com> | 2017-06-16 08:29:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-16 11:48:40 -0400 |
commit | 634fef61076d644b989b86abc2f560d81a089a31 (patch) | |
tree | 41e0cfc0c640666a75ad07588df34addb18176d0 /drivers | |
parent | d58ff35122847a83ba55394e2ae3a1527b6febf5 (diff) |
networking: add and use skb_put_u8()
Joe and Bjørn suggested that it'd be nicer to not have the
cast in the fairly common case of doing
*(u8 *)skb_put(skb, 1) = c;
Add skb_put_u8() for this case, and use it across the code,
using the following spatch:
@@
expression SKB, C, S;
typedef u8;
identifier fn = {skb_put};
fresh identifier fn2 = fn ## "_u8";
@@
- *(u8 *)fn(SKB, S) = C;
+ fn2(SKB, C);
Note that due to the "S", the spatch isn't perfect, it should
have checked that S is 1, but there's also places that use a
sizeof expression like sizeof(var) or sizeof(u8) etc. Turns
out that nobody ever did something like
*(u8 *)skb_put(skb, 2) = c;
which would be wrong anyway since the second byte wouldn't be
initialized.
Suggested-by: Joe Perches <joe@perches.com>
Suggested-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
27 files changed, 75 insertions, 74 deletions
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index 39a05b0c8998..d4b0b655dde6 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -448,7 +448,7 @@ static void bluecard_receive(struct bluecard_info *info, | |||
448 | 448 | ||
449 | } else { | 449 | } else { |
450 | 450 | ||
451 | *(u8 *)skb_put(info->rx_skb, 1) = buf[i]; | 451 | skb_put_u8(info->rx_skb, buf[i]); |
452 | info->rx_count--; | 452 | info->rx_count--; |
453 | 453 | ||
454 | if (info->rx_count == 0) { | 454 | if (info->rx_count == 0) { |
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index be2d431aa366..32dcac017395 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -282,7 +282,7 @@ static void bt3c_receive(struct bt3c_info *info) | |||
282 | 282 | ||
283 | __u8 x = inb(iobase + DATA_L); | 283 | __u8 x = inb(iobase + DATA_L); |
284 | 284 | ||
285 | *(u8 *)skb_put(info->rx_skb, 1) = x; | 285 | skb_put_u8(info->rx_skb, x); |
286 | inb(iobase + DATA_H); | 286 | inb(iobase + DATA_H); |
287 | info->rx_count--; | 287 | info->rx_count--; |
288 | 288 | ||
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index 80b64e9684a3..7df79bb12350 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -233,7 +233,7 @@ static void btuart_receive(struct btuart_info *info) | |||
233 | 233 | ||
234 | } else { | 234 | } else { |
235 | 235 | ||
236 | *(u8 *)skb_put(info->rx_skb, 1) = inb(iobase + UART_RX); | 236 | skb_put_u8(info->rx_skb, inb(iobase + UART_RX)); |
237 | info->rx_count--; | 237 | info->rx_count--; |
238 | 238 | ||
239 | if (info->rx_count == 0) { | 239 | if (info->rx_count == 0) { |
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index ba207c787605..fa24d693af24 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -1844,7 +1844,7 @@ static int inject_cmd_complete(struct hci_dev *hdev, __u16 opcode) | |||
1844 | evt->ncmd = 0x01; | 1844 | evt->ncmd = 0x01; |
1845 | evt->opcode = cpu_to_le16(opcode); | 1845 | evt->opcode = cpu_to_le16(opcode); |
1846 | 1846 | ||
1847 | *(u8 *)skb_put(skb, 1) = 0x00; | 1847 | skb_put_u8(skb, 0x00); |
1848 | 1848 | ||
1849 | hci_skb_pkt_type(skb) = HCI_EVENT_PKT; | 1849 | hci_skb_pkt_type(skb) = HCI_EVENT_PKT; |
1850 | 1850 | ||
@@ -2767,8 +2767,8 @@ static struct urb *alloc_diag_urb(struct hci_dev *hdev, bool enable) | |||
2767 | return ERR_PTR(-ENOMEM); | 2767 | return ERR_PTR(-ENOMEM); |
2768 | } | 2768 | } |
2769 | 2769 | ||
2770 | *(u8 *)skb_put(skb, 1) = 0xf0; | 2770 | skb_put_u8(skb, 0xf0); |
2771 | *(u8 *)skb_put(skb, 1) = enable; | 2771 | skb_put_u8(skb, enable); |
2772 | 2772 | ||
2773 | pipe = usb_sndbulkpipe(data->udev, data->diag_tx_ep->bEndpointAddress); | 2773 | pipe = usb_sndbulkpipe(data->udev, data->diag_tx_ep->bEndpointAddress); |
2774 | 2774 | ||
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index 6c5a3aa566a4..2adfe4fade76 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -226,7 +226,7 @@ static void dtl1_receive(struct dtl1_info *info) | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | 228 | ||
229 | *(u8 *)skb_put(info->rx_skb, 1) = inb(iobase + UART_RX); | 229 | skb_put_u8(info->rx_skb, inb(iobase + UART_RX)); |
230 | nsh = (struct nsh *)info->rx_skb->data; | 230 | nsh = (struct nsh *)info->rx_skb->data; |
231 | 231 | ||
232 | info->rx_count--; | 232 | info->rx_count--; |
@@ -414,7 +414,7 @@ static int dtl1_hci_send_frame(struct hci_dev *hdev, struct sk_buff *skb) | |||
414 | skb_reserve(s, NSHL); | 414 | skb_reserve(s, NSHL); |
415 | skb_copy_from_linear_data(skb, skb_put(s, skb->len), skb->len); | 415 | skb_copy_from_linear_data(skb, skb_put(s, skb->len), skb->len); |
416 | if (skb->len & 0x0001) | 416 | if (skb->len & 0x0001) |
417 | *(u8 *)skb_put(s, 1) = 0; /* PAD */ | 417 | skb_put_u8(s, 0); /* PAD */ |
418 | 418 | ||
419 | /* Prepend skb with Nokia frame header and queue */ | 419 | /* Prepend skb with Nokia frame header and queue */ |
420 | memcpy(skb_push(s, NSHL), &nsh, NSHL); | 420 | memcpy(skb_push(s, NSHL), &nsh, NSHL); |
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index c1c4048ee37d..d2e9e2d1b014 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c | |||
@@ -262,9 +262,9 @@ static int bcm_set_diag(struct hci_dev *hdev, bool enable) | |||
262 | if (!skb) | 262 | if (!skb) |
263 | return -ENOMEM; | 263 | return -ENOMEM; |
264 | 264 | ||
265 | *(u8 *)skb_put(skb, 1) = BCM_LM_DIAG_PKT; | 265 | skb_put_u8(skb, BCM_LM_DIAG_PKT); |
266 | *(u8 *)skb_put(skb, 1) = 0xf0; | 266 | skb_put_u8(skb, 0xf0); |
267 | *(u8 *)skb_put(skb, 1) = enable; | 267 | skb_put_u8(skb, enable); |
268 | 268 | ||
269 | skb_queue_tail(&bcm->txq, skb); | 269 | skb_queue_tail(&bcm->txq, skb); |
270 | hci_uart_tx_wakeup(hu); | 270 | hci_uart_tx_wakeup(hu); |
diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c index ee97c465e32e..aad07e40ea4f 100644 --- a/drivers/bluetooth/hci_intel.c +++ b/drivers/bluetooth/hci_intel.c | |||
@@ -470,7 +470,7 @@ static int inject_cmd_complete(struct hci_dev *hdev, __u16 opcode) | |||
470 | evt->ncmd = 0x01; | 470 | evt->ncmd = 0x01; |
471 | evt->opcode = cpu_to_le16(opcode); | 471 | evt->opcode = cpu_to_le16(opcode); |
472 | 472 | ||
473 | *(u8 *)skb_put(skb, 1) = 0x00; | 473 | skb_put_u8(skb, 0x00); |
474 | 474 | ||
475 | hci_skb_pkt_type(skb) = HCI_EVENT_PKT; | 475 | hci_skb_pkt_type(skb) = HCI_EVENT_PKT; |
476 | 476 | ||
diff --git a/drivers/bluetooth/hci_nokia.c b/drivers/bluetooth/hci_nokia.c index 072a77a61e67..181a15b549e5 100644 --- a/drivers/bluetooth/hci_nokia.c +++ b/drivers/bluetooth/hci_nokia.c | |||
@@ -532,7 +532,7 @@ static int nokia_enqueue(struct hci_uart *hu, struct sk_buff *skb) | |||
532 | err = skb_pad(skb, 1); | 532 | err = skb_pad(skb, 1); |
533 | if (err) | 533 | if (err) |
534 | return err; | 534 | return err; |
535 | *(u8 *)skb_put(skb, 1) = 0x00; | 535 | skb_put_u8(skb, 0x00); |
536 | } | 536 | } |
537 | 537 | ||
538 | skb_queue_tail(&btdev->txq, skb); | 538 | skb_queue_tail(&btdev->txq, skb); |
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index e2c88515340a..392f412b4575 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c | |||
@@ -215,7 +215,7 @@ static int send_hci_ibs_cmd(u8 cmd, struct hci_uart *hu) | |||
215 | } | 215 | } |
216 | 216 | ||
217 | /* Assign HCI_IBS type */ | 217 | /* Assign HCI_IBS type */ |
218 | *(u8 *)skb_put(skb, 1) = cmd; | 218 | skb_put_u8(skb, cmd); |
219 | 219 | ||
220 | skb_queue_tail(&qca->txq, skb); | 220 | skb_queue_tail(&qca->txq, skb); |
221 | 221 | ||
diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c index 1ef9c427a2d8..e6f6dbc04131 100644 --- a/drivers/bluetooth/hci_vhci.c +++ b/drivers/bluetooth/hci_vhci.c | |||
@@ -146,8 +146,8 @@ static int __vhci_create_device(struct vhci_data *data, __u8 opcode) | |||
146 | 146 | ||
147 | hci_skb_pkt_type(skb) = HCI_VENDOR_PKT; | 147 | hci_skb_pkt_type(skb) = HCI_VENDOR_PKT; |
148 | 148 | ||
149 | *(u8 *)skb_put(skb, 1) = 0xff; | 149 | skb_put_u8(skb, 0xff); |
150 | *(u8 *)skb_put(skb, 1) = opcode; | 150 | skb_put_u8(skb, opcode); |
151 | put_unaligned_le16(hdev->id, skb_put(skb, 2)); | 151 | put_unaligned_le16(hdev->id, skb_put(skb, 2)); |
152 | skb_queue_tail(&data->readq, skb); | 152 | skb_queue_tail(&data->readq, skb); |
153 | 153 | ||
diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c index 96f586d34d2d..dde8f46bc254 100644 --- a/drivers/isdn/capi/capi.c +++ b/drivers/isdn/capi/capi.c | |||
@@ -1082,7 +1082,7 @@ static int capinc_tty_put_char(struct tty_struct *tty, unsigned char ch) | |||
1082 | skb = mp->outskb; | 1082 | skb = mp->outskb; |
1083 | if (skb) { | 1083 | if (skb) { |
1084 | if (skb_tailroom(skb) > 0) { | 1084 | if (skb_tailroom(skb) > 0) { |
1085 | *(u8 *)skb_put(skb, 1) = ch; | 1085 | skb_put_u8(skb, ch); |
1086 | goto unlock_out; | 1086 | goto unlock_out; |
1087 | } | 1087 | } |
1088 | mp->outskb = NULL; | 1088 | mp->outskb = NULL; |
@@ -1094,7 +1094,7 @@ static int capinc_tty_put_char(struct tty_struct *tty, unsigned char ch) | |||
1094 | skb = alloc_skb(CAPI_DATA_B3_REQ_LEN + CAPI_MAX_BLKSIZE, GFP_ATOMIC); | 1094 | skb = alloc_skb(CAPI_DATA_B3_REQ_LEN + CAPI_MAX_BLKSIZE, GFP_ATOMIC); |
1095 | if (skb) { | 1095 | if (skb) { |
1096 | skb_reserve(skb, CAPI_DATA_B3_REQ_LEN); | 1096 | skb_reserve(skb, CAPI_DATA_B3_REQ_LEN); |
1097 | *(u8 *)skb_put(skb, 1) = ch; | 1097 | skb_put_u8(skb, ch); |
1098 | mp->outskb = skb; | 1098 | mp->outskb = skb; |
1099 | } else { | 1099 | } else { |
1100 | printk(KERN_ERR "capinc_put_char: char %u lost\n", ch); | 1100 | printk(KERN_ERR "capinc_put_char: char %u lost\n", ch); |
diff --git a/drivers/isdn/gigaset/asyncdata.c b/drivers/isdn/gigaset/asyncdata.c index 03ac9fbfe318..4caecdcc6f29 100644 --- a/drivers/isdn/gigaset/asyncdata.c +++ b/drivers/isdn/gigaset/asyncdata.c | |||
@@ -492,33 +492,33 @@ static struct sk_buff *HDLC_Encode(struct sk_buff *skb) | |||
492 | hdlc_skb->mac_len = skb->mac_len; | 492 | hdlc_skb->mac_len = skb->mac_len; |
493 | 493 | ||
494 | /* Add flag sequence in front of everything.. */ | 494 | /* Add flag sequence in front of everything.. */ |
495 | *(u8 *)skb_put(hdlc_skb, 1) = PPP_FLAG; | 495 | skb_put_u8(hdlc_skb, PPP_FLAG); |
496 | 496 | ||
497 | /* Perform byte stuffing while copying data. */ | 497 | /* Perform byte stuffing while copying data. */ |
498 | while (skb->len--) { | 498 | while (skb->len--) { |
499 | if (muststuff(*skb->data)) { | 499 | if (muststuff(*skb->data)) { |
500 | *(u8 *)skb_put(hdlc_skb, 1) = PPP_ESCAPE; | 500 | skb_put_u8(hdlc_skb, PPP_ESCAPE); |
501 | *(u8 *)skb_put(hdlc_skb, 1) = (*skb->data++) ^ PPP_TRANS; | 501 | skb_put_u8(hdlc_skb, (*skb->data++) ^ PPP_TRANS); |
502 | } else | 502 | } else |
503 | *(u8 *)skb_put(hdlc_skb, 1) = *skb->data++; | 503 | skb_put_u8(hdlc_skb, *skb->data++); |
504 | } | 504 | } |
505 | 505 | ||
506 | /* Finally add FCS (byte stuffed) and flag sequence */ | 506 | /* Finally add FCS (byte stuffed) and flag sequence */ |
507 | c = (fcs & 0x00ff); /* least significant byte first */ | 507 | c = (fcs & 0x00ff); /* least significant byte first */ |
508 | if (muststuff(c)) { | 508 | if (muststuff(c)) { |
509 | *(u8 *)skb_put(hdlc_skb, 1) = PPP_ESCAPE; | 509 | skb_put_u8(hdlc_skb, PPP_ESCAPE); |
510 | c ^= PPP_TRANS; | 510 | c ^= PPP_TRANS; |
511 | } | 511 | } |
512 | *(u8 *)skb_put(hdlc_skb, 1) = c; | 512 | skb_put_u8(hdlc_skb, c); |
513 | 513 | ||
514 | c = ((fcs >> 8) & 0x00ff); | 514 | c = ((fcs >> 8) & 0x00ff); |
515 | if (muststuff(c)) { | 515 | if (muststuff(c)) { |
516 | *(u8 *)skb_put(hdlc_skb, 1) = PPP_ESCAPE; | 516 | skb_put_u8(hdlc_skb, PPP_ESCAPE); |
517 | c ^= PPP_TRANS; | 517 | c ^= PPP_TRANS; |
518 | } | 518 | } |
519 | *(u8 *)skb_put(hdlc_skb, 1) = c; | 519 | skb_put_u8(hdlc_skb, c); |
520 | 520 | ||
521 | *(u8 *)skb_put(hdlc_skb, 1) = PPP_FLAG; | 521 | skb_put_u8(hdlc_skb, PPP_FLAG); |
522 | 522 | ||
523 | dev_kfree_skb_any(skb); | 523 | dev_kfree_skb_any(skb); |
524 | return hdlc_skb; | 524 | return hdlc_skb; |
@@ -561,8 +561,8 @@ static struct sk_buff *iraw_encode(struct sk_buff *skb) | |||
561 | while (len--) { | 561 | while (len--) { |
562 | c = bitrev8(*cp++); | 562 | c = bitrev8(*cp++); |
563 | if (c == DLE_FLAG) | 563 | if (c == DLE_FLAG) |
564 | *(u8 *)skb_put(iraw_skb, 1) = c; | 564 | skb_put_u8(iraw_skb, c); |
565 | *(u8 *)skb_put(iraw_skb, 1) = c; | 565 | skb_put_u8(iraw_skb, c); |
566 | } | 566 | } |
567 | dev_kfree_skb_any(skb); | 567 | dev_kfree_skb_any(skb); |
568 | return iraw_skb; | 568 | return iraw_skb; |
diff --git a/drivers/isdn/i4l/isdn_bsdcomp.c b/drivers/isdn/i4l/isdn_bsdcomp.c index 6ade0916da4e..3035210a6119 100644 --- a/drivers/isdn/i4l/isdn_bsdcomp.c +++ b/drivers/isdn/i4l/isdn_bsdcomp.c | |||
@@ -602,7 +602,8 @@ static int bsd_compress(void *state, struct sk_buff *skb_in, struct sk_buff *skb | |||
602 | * Do not emit a completely useless byte of ones. | 602 | * Do not emit a completely useless byte of ones. |
603 | */ | 603 | */ |
604 | if (bitno < 32 && skb_out && skb_tailroom(skb_out) > 0) | 604 | if (bitno < 32 && skb_out && skb_tailroom(skb_out) > 0) |
605 | *(u8 *)skb_put(skb_out, 1) = (unsigned char)((accm | (0xff << (bitno - 8))) >> 24); | 605 | skb_put_u8(skb_out, |
606 | (unsigned char)((accm | (0xff << (bitno - 8))) >> 24)); | ||
606 | 607 | ||
607 | /* | 608 | /* |
608 | * Increase code size if we would have without the packet | 609 | * Increase code size if we would have without the packet |
@@ -698,7 +699,7 @@ static int bsd_decompress(void *state, struct sk_buff *skb_in, struct sk_buff *s | |||
698 | db->bytes_out += ilen; | 699 | db->bytes_out += ilen; |
699 | 700 | ||
700 | if (skb_tailroom(skb_out) > 0) | 701 | if (skb_tailroom(skb_out) > 0) |
701 | *(u8 *)skb_put(skb_out, 1) = 0; | 702 | skb_put_u8(skb_out, 0); |
702 | else | 703 | else |
703 | return DECOMP_ERR_NOMEM; | 704 | return DECOMP_ERR_NOMEM; |
704 | 705 | ||
@@ -816,7 +817,7 @@ static int bsd_decompress(void *state, struct sk_buff *skb_in, struct sk_buff *s | |||
816 | #endif | 817 | #endif |
817 | 818 | ||
818 | if (extra) /* the KwKwK case again */ | 819 | if (extra) /* the KwKwK case again */ |
819 | *(u8 *)skb_put(skb_out, 1) = finchar; | 820 | skb_put_u8(skb_out, finchar); |
820 | 821 | ||
821 | /* | 822 | /* |
822 | * If not first code in a packet, and | 823 | * If not first code in a packet, and |
diff --git a/drivers/isdn/i4l/isdn_x25iface.c b/drivers/isdn/i4l/isdn_x25iface.c index e33fa3073f74..48bfbcb4a09d 100644 --- a/drivers/isdn/i4l/isdn_x25iface.c +++ b/drivers/isdn/i4l/isdn_x25iface.c | |||
@@ -224,7 +224,7 @@ static int isdn_x25iface_connect_ind(struct concap_proto *cprot) | |||
224 | 224 | ||
225 | skb = dev_alloc_skb(1); | 225 | skb = dev_alloc_skb(1); |
226 | if (skb) { | 226 | if (skb) { |
227 | *(u8 *)skb_put(skb, 1) = X25_IFACE_CONNECT; | 227 | skb_put_u8(skb, X25_IFACE_CONNECT); |
228 | skb->protocol = x25_type_trans(skb, cprot->net_dev); | 228 | skb->protocol = x25_type_trans(skb, cprot->net_dev); |
229 | netif_rx(skb); | 229 | netif_rx(skb); |
230 | return 0; | 230 | return 0; |
@@ -253,7 +253,7 @@ static int isdn_x25iface_disconn_ind(struct concap_proto *cprot) | |||
253 | *state_p = WAN_DISCONNECTED; | 253 | *state_p = WAN_DISCONNECTED; |
254 | skb = dev_alloc_skb(1); | 254 | skb = dev_alloc_skb(1); |
255 | if (skb) { | 255 | if (skb) { |
256 | *(u8 *)skb_put(skb, 1) = X25_IFACE_DISCONNECT; | 256 | skb_put_u8(skb, X25_IFACE_DISCONNECT); |
257 | skb->protocol = x25_type_trans(skb, cprot->net_dev); | 257 | skb->protocol = x25_type_trans(skb, cprot->net_dev); |
258 | netif_rx(skb); | 258 | netif_rx(skb); |
259 | return 0; | 259 | return 0; |
diff --git a/drivers/net/hamradio/scc.c b/drivers/net/hamradio/scc.c index 140a209f22ab..295f267b73ea 100644 --- a/drivers/net/hamradio/scc.c +++ b/drivers/net/hamradio/scc.c | |||
@@ -540,7 +540,7 @@ static inline void scc_rxint(struct scc_channel *scc) | |||
540 | } | 540 | } |
541 | 541 | ||
542 | scc->rx_buff = skb; | 542 | scc->rx_buff = skb; |
543 | *(u8 *)skb_put(skb, 1) = 0; /* KISS data */ | 543 | skb_put_u8(skb, 0); /* KISS data */ |
544 | } | 544 | } |
545 | 545 | ||
546 | if (skb->len >= scc->stat.bufsize) | 546 | if (skb->len >= scc->stat.bufsize) |
@@ -555,7 +555,7 @@ static inline void scc_rxint(struct scc_channel *scc) | |||
555 | return; | 555 | return; |
556 | } | 556 | } |
557 | 557 | ||
558 | *(u8 *)skb_put(skb, 1) = Inb(scc->data); | 558 | skb_put_u8(skb, Inb(scc->data)); |
559 | } | 559 | } |
560 | 560 | ||
561 | 561 | ||
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index 4d4837a0645b..bcb974707118 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c | |||
@@ -1250,7 +1250,7 @@ cdc_ncm_fill_tx_frame(struct usbnet *dev, struct sk_buff *skb, __le32 sign) | |||
1250 | skb_put_zero(skb_out, padding_count); | 1250 | skb_put_zero(skb_out, padding_count); |
1251 | } else if (skb_out->len < ctx->tx_max && | 1251 | } else if (skb_out->len < ctx->tx_max && |
1252 | (skb_out->len % dev->maxpacket) == 0) { | 1252 | (skb_out->len % dev->maxpacket) == 0) { |
1253 | *(u8 *)skb_put(skb_out, 1) = 0; /* force short packet */ | 1253 | skb_put_u8(skb_out, 0); /* force short packet */ |
1254 | } | 1254 | } |
1255 | 1255 | ||
1256 | /* set final frame length */ | 1256 | /* set final frame length */ |
diff --git a/drivers/net/usb/net1080.c b/drivers/net/usb/net1080.c index be53ff30b7b5..18a13aa5fcbb 100644 --- a/drivers/net/usb/net1080.c +++ b/drivers/net/usb/net1080.c | |||
@@ -473,7 +473,7 @@ encapsulate: | |||
473 | 473 | ||
474 | /* maybe pad; then trailer */ | 474 | /* maybe pad; then trailer */ |
475 | if (!((skb->len + sizeof *trailer) & 0x01)) | 475 | if (!((skb->len + sizeof *trailer) & 0x01)) |
476 | *(u8 *)skb_put(skb, 1) = PAD_BYTE; | 476 | skb_put_u8(skb, PAD_BYTE); |
477 | trailer = skb_put(skb, sizeof *trailer); | 477 | trailer = skb_put(skb, sizeof *trailer); |
478 | put_unaligned(header->packet_id, &trailer->packet_id); | 478 | put_unaligned(header->packet_id, &trailer->packet_id); |
479 | #if 0 | 479 | #if 0 |
diff --git a/drivers/net/usb/zaurus.c b/drivers/net/usb/zaurus.c index dc3cd03763af..9c2196c3fd11 100644 --- a/drivers/net/usb/zaurus.c +++ b/drivers/net/usb/zaurus.c | |||
@@ -74,10 +74,10 @@ done: | |||
74 | fcs = crc32_le(~0, skb->data, skb->len); | 74 | fcs = crc32_le(~0, skb->data, skb->len); |
75 | fcs = ~fcs; | 75 | fcs = ~fcs; |
76 | 76 | ||
77 | *(u8 *)skb_put(skb, 1) = fcs & 0xff; | 77 | skb_put_u8(skb, fcs & 0xff); |
78 | *(u8 *)skb_put(skb, 1) = (fcs>> 8) & 0xff; | 78 | skb_put_u8(skb, (fcs >> 8) & 0xff); |
79 | *(u8 *)skb_put(skb, 1) = (fcs>>16) & 0xff; | 79 | skb_put_u8(skb, (fcs >> 16) & 0xff); |
80 | *(u8 *)skb_put(skb, 1) = (fcs>>24) & 0xff; | 80 | skb_put_u8(skb, (fcs >> 24) & 0xff); |
81 | } | 81 | } |
82 | return skb; | 82 | return skb; |
83 | } | 83 | } |
diff --git a/drivers/nfc/fdp/i2c.c b/drivers/nfc/fdp/i2c.c index d5781aa0f791..e0baec848ff2 100644 --- a/drivers/nfc/fdp/i2c.c +++ b/drivers/nfc/fdp/i2c.c | |||
@@ -86,7 +86,7 @@ static void fdp_nci_i2c_add_len_lrc(struct sk_buff *skb) | |||
86 | for (i = 0; i < len + 2; i++) | 86 | for (i = 0; i < len + 2; i++) |
87 | lrc ^= skb->data[i]; | 87 | lrc ^= skb->data[i]; |
88 | 88 | ||
89 | *(u8 *)skb_put(skb, 1) = lrc; | 89 | skb_put_u8(skb, lrc); |
90 | } | 90 | } |
91 | 91 | ||
92 | static void fdp_nci_i2c_remove_len_lrc(struct sk_buff *skb) | 92 | static void fdp_nci_i2c_remove_len_lrc(struct sk_buff *skb) |
diff --git a/drivers/nfc/microread/i2c.c b/drivers/nfc/microread/i2c.c index 386cc61d95b9..b668b7b9a61e 100644 --- a/drivers/nfc/microread/i2c.c +++ b/drivers/nfc/microread/i2c.c | |||
@@ -75,7 +75,7 @@ static void microread_i2c_add_len_crc(struct sk_buff *skb) | |||
75 | for (i = 0; i < skb->len; i++) | 75 | for (i = 0; i < skb->len; i++) |
76 | crc = crc ^ skb->data[i]; | 76 | crc = crc ^ skb->data[i]; |
77 | 77 | ||
78 | *(u8 *)skb_put(skb, 1) = crc; | 78 | skb_put_u8(skb, crc); |
79 | } | 79 | } |
80 | 80 | ||
81 | static void microread_i2c_remove_len_crc(struct sk_buff *skb) | 81 | static void microread_i2c_remove_len_crc(struct sk_buff *skb) |
@@ -173,7 +173,7 @@ static int microread_i2c_read(struct microread_i2c_phy *phy, | |||
173 | goto flush; | 173 | goto flush; |
174 | } | 174 | } |
175 | 175 | ||
176 | *(u8 *)skb_put(*skb, 1) = len; | 176 | skb_put_u8(*skb, len); |
177 | 177 | ||
178 | r = i2c_master_recv(client, skb_put(*skb, len), len); | 178 | r = i2c_master_recv(client, skb_put(*skb, len), len); |
179 | if (r != len) { | 179 | if (r != len) { |
diff --git a/drivers/nfc/microread/microread.c b/drivers/nfc/microread/microread.c index 38a979eacc29..e5d5d2d97409 100644 --- a/drivers/nfc/microread/microread.c +++ b/drivers/nfc/microread/microread.c | |||
@@ -441,8 +441,8 @@ static int microread_im_transceive(struct nfc_hci_dev *hdev, | |||
441 | 441 | ||
442 | crc = crc_ccitt(0xffff, skb->data, skb->len); | 442 | crc = crc_ccitt(0xffff, skb->data, skb->len); |
443 | crc = ~crc; | 443 | crc = ~crc; |
444 | *(u8 *)skb_put(skb, 1) = crc & 0xff; | 444 | skb_put_u8(skb, crc & 0xff); |
445 | *(u8 *)skb_put(skb, 1) = crc >> 8; | 445 | skb_put_u8(skb, crc >> 8); |
446 | break; | 446 | break; |
447 | case MICROREAD_GATE_ID_MREAD_NFC_T3: | 447 | case MICROREAD_GATE_ID_MREAD_NFC_T3: |
448 | control_bits = 0xDB; | 448 | control_bits = 0xDB; |
diff --git a/drivers/nfc/nfcmrvl/fw_dnld.c b/drivers/nfc/nfcmrvl/fw_dnld.c index 788599de9d8a..f9f000c546d1 100644 --- a/drivers/nfc/nfcmrvl/fw_dnld.c +++ b/drivers/nfc/nfcmrvl/fw_dnld.c | |||
@@ -292,7 +292,7 @@ static int process_state_fw_dnld(struct nfcmrvl_private *priv, | |||
292 | out_skb = alloc_lc_skb(priv, 1); | 292 | out_skb = alloc_lc_skb(priv, 1); |
293 | if (!out_skb) | 293 | if (!out_skb) |
294 | return -ENOMEM; | 294 | return -ENOMEM; |
295 | *(u8 *)skb_put(out_skb, 1) = 0xBF; | 295 | skb_put_u8(out_skb, 0xBF); |
296 | nci_send_frame(priv->ndev, out_skb); | 296 | nci_send_frame(priv->ndev, out_skb); |
297 | priv->fw_dnld.substate = SUBSTATE_WAIT_NACK_CREDIT; | 297 | priv->fw_dnld.substate = SUBSTATE_WAIT_NACK_CREDIT; |
298 | return 0; | 298 | return 0; |
@@ -301,7 +301,7 @@ static int process_state_fw_dnld(struct nfcmrvl_private *priv, | |||
301 | out_skb = alloc_lc_skb(priv, 1); | 301 | out_skb = alloc_lc_skb(priv, 1); |
302 | if (!out_skb) | 302 | if (!out_skb) |
303 | return -ENOMEM; | 303 | return -ENOMEM; |
304 | *(u8 *)skb_put(out_skb, 1) = HELPER_ACK_PACKET_FORMAT; | 304 | skb_put_u8(out_skb, HELPER_ACK_PACKET_FORMAT); |
305 | nci_send_frame(priv->ndev, out_skb); | 305 | nci_send_frame(priv->ndev, out_skb); |
306 | priv->fw_dnld.substate = SUBSTATE_WAIT_ACK_CREDIT; | 306 | priv->fw_dnld.substate = SUBSTATE_WAIT_ACK_CREDIT; |
307 | break; | 307 | break; |
diff --git a/drivers/nfc/pn533/pn533.c b/drivers/nfc/pn533/pn533.c index 6a711b5b9490..c8a8f5badb5b 100644 --- a/drivers/nfc/pn533/pn533.c +++ b/drivers/nfc/pn533/pn533.c | |||
@@ -1032,7 +1032,7 @@ static struct sk_buff *pn533_alloc_poll_tg_frame(struct pn533 *dev) | |||
1032 | return NULL; | 1032 | return NULL; |
1033 | 1033 | ||
1034 | /* DEP support only */ | 1034 | /* DEP support only */ |
1035 | *(u8 *)skb_put(skb, 1) = PN533_INIT_TARGET_DEP; | 1035 | skb_put_u8(skb, PN533_INIT_TARGET_DEP); |
1036 | 1036 | ||
1037 | /* MIFARE params */ | 1037 | /* MIFARE params */ |
1038 | skb_put_data(skb, mifare_params, 6); | 1038 | skb_put_data(skb, mifare_params, 6); |
@@ -1046,12 +1046,12 @@ static struct sk_buff *pn533_alloc_poll_tg_frame(struct pn533 *dev) | |||
1046 | memcpy(nfcid3, felica, 8); | 1046 | memcpy(nfcid3, felica, 8); |
1047 | 1047 | ||
1048 | /* General bytes */ | 1048 | /* General bytes */ |
1049 | *(u8 *)skb_put(skb, 1) = gbytes_len; | 1049 | skb_put_u8(skb, gbytes_len); |
1050 | 1050 | ||
1051 | gb = skb_put_data(skb, gbytes, gbytes_len); | 1051 | gb = skb_put_data(skb, gbytes, gbytes_len); |
1052 | 1052 | ||
1053 | /* Len Tk */ | 1053 | /* Len Tk */ |
1054 | *(u8 *)skb_put(skb, 1) = 0; | 1054 | skb_put_u8(skb, 0); |
1055 | 1055 | ||
1056 | return skb; | 1056 | return skb; |
1057 | } | 1057 | } |
@@ -1280,8 +1280,8 @@ static void pn533_wq_rf(struct work_struct *work) | |||
1280 | if (!skb) | 1280 | if (!skb) |
1281 | return; | 1281 | return; |
1282 | 1282 | ||
1283 | *(u8 *)skb_put(skb, 1) = PN533_CFGITEM_RF_FIELD; | 1283 | skb_put_u8(skb, PN533_CFGITEM_RF_FIELD); |
1284 | *(u8 *)skb_put(skb, 1) = PN533_CFGITEM_RF_FIELD_AUTO_RFCA; | 1284 | skb_put_u8(skb, PN533_CFGITEM_RF_FIELD_AUTO_RFCA); |
1285 | 1285 | ||
1286 | rc = pn533_send_cmd_async(dev, PN533_CMD_RF_CONFIGURATION, skb, | 1286 | rc = pn533_send_cmd_async(dev, PN533_CMD_RF_CONFIGURATION, skb, |
1287 | pn533_rf_complete, NULL); | 1287 | pn533_rf_complete, NULL); |
@@ -1375,8 +1375,8 @@ static int pn533_poll_dep(struct nfc_dev *nfc_dev) | |||
1375 | if (!skb) | 1375 | if (!skb) |
1376 | return -ENOMEM; | 1376 | return -ENOMEM; |
1377 | 1377 | ||
1378 | *(u8 *)skb_put(skb, 1) = 0x01; /* Active */ | 1378 | skb_put_u8(skb, 0x01); /* Active */ |
1379 | *(u8 *)skb_put(skb, 1) = 0x02; /* 424 kbps */ | 1379 | skb_put_u8(skb, 0x02); /* 424 kbps */ |
1380 | 1380 | ||
1381 | next = skb_put(skb, 1); /* Next */ | 1381 | next = skb_put(skb, 1); /* Next */ |
1382 | *next = 0; | 1382 | *next = 0; |
@@ -1620,8 +1620,8 @@ static int pn533_activate_target_nfcdep(struct pn533 *dev) | |||
1620 | if (!skb) | 1620 | if (!skb) |
1621 | return -ENOMEM; | 1621 | return -ENOMEM; |
1622 | 1622 | ||
1623 | *(u8 *)skb_put(skb, sizeof(u8)) = 1; /* TG */ | 1623 | skb_put_u8(skb, 1); /* TG */ |
1624 | *(u8 *)skb_put(skb, sizeof(u8)) = 0; /* Next */ | 1624 | skb_put_u8(skb, 0); /* Next */ |
1625 | 1625 | ||
1626 | resp = pn533_send_cmd_sync(dev, PN533_CMD_IN_ATR, skb); | 1626 | resp = pn533_send_cmd_sync(dev, PN533_CMD_IN_ATR, skb); |
1627 | if (IS_ERR(resp)) | 1627 | if (IS_ERR(resp)) |
@@ -1737,7 +1737,7 @@ static void pn533_deactivate_target(struct nfc_dev *nfc_dev, | |||
1737 | if (!skb) | 1737 | if (!skb) |
1738 | return; | 1738 | return; |
1739 | 1739 | ||
1740 | *(u8 *)skb_put(skb, 1) = 1; /* TG*/ | 1740 | skb_put_u8(skb, 1); /* TG*/ |
1741 | 1741 | ||
1742 | rc = pn533_send_cmd_async(dev, PN533_CMD_IN_RELEASE, skb, | 1742 | rc = pn533_send_cmd_async(dev, PN533_CMD_IN_RELEASE, skb, |
1743 | pn533_deactivate_target_complete, NULL); | 1743 | pn533_deactivate_target_complete, NULL); |
@@ -1848,8 +1848,8 @@ static int pn533_dep_link_up(struct nfc_dev *nfc_dev, struct nfc_target *target, | |||
1848 | if (!skb) | 1848 | if (!skb) |
1849 | return -ENOMEM; | 1849 | return -ENOMEM; |
1850 | 1850 | ||
1851 | *(u8 *)skb_put(skb, 1) = !comm_mode; /* ActPass */ | 1851 | skb_put_u8(skb, !comm_mode); /* ActPass */ |
1852 | *(u8 *)skb_put(skb, 1) = 0x02; /* 424 kbps */ | 1852 | skb_put_u8(skb, 0x02); /* 424 kbps */ |
1853 | 1853 | ||
1854 | next = skb_put(skb, 1); /* Next */ | 1854 | next = skb_put(skb, 1); /* Next */ |
1855 | *next = 0; | 1855 | *next = 0; |
@@ -2274,7 +2274,7 @@ static void pn533_wq_mi_recv(struct work_struct *work) | |||
2274 | break; | 2274 | break; |
2275 | } | 2275 | } |
2276 | default: | 2276 | default: |
2277 | *(u8 *)skb_put(skb, sizeof(u8)) = 1; /*TG*/ | 2277 | skb_put_u8(skb, 1); /*TG*/ |
2278 | 2278 | ||
2279 | rc = pn533_send_cmd_direct_async(dev, | 2279 | rc = pn533_send_cmd_direct_async(dev, |
2280 | PN533_CMD_IN_DATA_EXCHANGE, | 2280 | PN533_CMD_IN_DATA_EXCHANGE, |
@@ -2370,7 +2370,7 @@ static int pn533_set_configuration(struct pn533 *dev, u8 cfgitem, u8 *cfgdata, | |||
2370 | if (!skb) | 2370 | if (!skb) |
2371 | return -ENOMEM; | 2371 | return -ENOMEM; |
2372 | 2372 | ||
2373 | *(u8 *)skb_put(skb, sizeof(cfgitem)) = cfgitem; | 2373 | skb_put_u8(skb, cfgitem); |
2374 | skb_put_data(skb, cfgdata, cfgdata_len); | 2374 | skb_put_data(skb, cfgdata, cfgdata_len); |
2375 | 2375 | ||
2376 | resp = pn533_send_cmd_sync(dev, PN533_CMD_RF_CONFIGURATION, skb); | 2376 | resp = pn533_send_cmd_sync(dev, PN533_CMD_RF_CONFIGURATION, skb); |
@@ -2415,7 +2415,7 @@ static int pn533_pasori_fw_reset(struct pn533 *dev) | |||
2415 | if (!skb) | 2415 | if (!skb) |
2416 | return -ENOMEM; | 2416 | return -ENOMEM; |
2417 | 2417 | ||
2418 | *(u8 *)skb_put(skb, sizeof(u8)) = 0x1; | 2418 | skb_put_u8(skb, 0x1); |
2419 | 2419 | ||
2420 | resp = pn533_send_cmd_sync(dev, 0x18, skb); | 2420 | resp = pn533_send_cmd_sync(dev, 0x18, skb); |
2421 | if (IS_ERR(resp)) | 2421 | if (IS_ERR(resp)) |
@@ -2454,7 +2454,7 @@ static int pn532_sam_configuration(struct nfc_dev *nfc_dev) | |||
2454 | if (!skb) | 2454 | if (!skb) |
2455 | return -ENOMEM; | 2455 | return -ENOMEM; |
2456 | 2456 | ||
2457 | *(u8 *)skb_put(skb, 1) = 0x01; | 2457 | skb_put_u8(skb, 0x01); |
2458 | 2458 | ||
2459 | resp = pn533_send_cmd_sync(dev, PN533_CMD_SAM_CONFIGURATION, skb); | 2459 | resp = pn533_send_cmd_sync(dev, PN533_CMD_SAM_CONFIGURATION, skb); |
2460 | if (IS_ERR(resp)) | 2460 | if (IS_ERR(resp)) |
diff --git a/drivers/nfc/pn544/i2c.c b/drivers/nfc/pn544/i2c.c index b7be6c25b7e6..fedde9d46ab6 100644 --- a/drivers/nfc/pn544/i2c.c +++ b/drivers/nfc/pn544/i2c.c | |||
@@ -287,8 +287,8 @@ static void pn544_hci_i2c_add_len_crc(struct sk_buff *skb) | |||
287 | 287 | ||
288 | crc = crc_ccitt(0xffff, skb->data, skb->len); | 288 | crc = crc_ccitt(0xffff, skb->data, skb->len); |
289 | crc = ~crc; | 289 | crc = ~crc; |
290 | *(u8 *)skb_put(skb, 1) = crc & 0xff; | 290 | skb_put_u8(skb, crc & 0xff); |
291 | *(u8 *)skb_put(skb, 1) = crc >> 8; | 291 | skb_put_u8(skb, crc >> 8); |
292 | } | 292 | } |
293 | 293 | ||
294 | static void pn544_hci_i2c_remove_len_crc(struct sk_buff *skb) | 294 | static void pn544_hci_i2c_remove_len_crc(struct sk_buff *skb) |
@@ -391,7 +391,7 @@ static int pn544_hci_i2c_read(struct pn544_i2c_phy *phy, struct sk_buff **skb) | |||
391 | goto flush; | 391 | goto flush; |
392 | } | 392 | } |
393 | 393 | ||
394 | *(u8 *)skb_put(*skb, 1) = len; | 394 | skb_put_u8(*skb, len); |
395 | 395 | ||
396 | r = i2c_master_recv(client, skb_put(*skb, len), len); | 396 | r = i2c_master_recv(client, skb_put(*skb, len), len); |
397 | if (r != len) { | 397 | if (r != len) { |
diff --git a/drivers/nfc/port100.c b/drivers/nfc/port100.c index 5fa3cf0fabd6..bb43cebda9dc 100644 --- a/drivers/nfc/port100.c +++ b/drivers/nfc/port100.c | |||
@@ -991,7 +991,7 @@ static int port100_set_command_type(struct port100 *dev, u8 command_type) | |||
991 | if (!skb) | 991 | if (!skb) |
992 | return -ENOMEM; | 992 | return -ENOMEM; |
993 | 993 | ||
994 | *(u8 *)skb_put(skb, sizeof(u8)) = command_type; | 994 | skb_put_u8(skb, command_type); |
995 | 995 | ||
996 | resp = port100_send_cmd_sync(dev, PORT100_CMD_SET_COMMAND_TYPE, skb); | 996 | resp = port100_send_cmd_sync(dev, PORT100_CMD_SET_COMMAND_TYPE, skb); |
997 | if (IS_ERR(resp)) | 997 | if (IS_ERR(resp)) |
@@ -1059,7 +1059,7 @@ static int port100_switch_rf(struct nfc_digital_dev *ddev, bool on) | |||
1059 | if (!skb) | 1059 | if (!skb) |
1060 | return -ENOMEM; | 1060 | return -ENOMEM; |
1061 | 1061 | ||
1062 | *(u8 *)skb_put(skb, 1) = on ? 1 : 0; | 1062 | skb_put_u8(skb, on ? 1 : 0); |
1063 | 1063 | ||
1064 | /* Cancel the last command if the device is being switched off */ | 1064 | /* Cancel the last command if the device is being switched off */ |
1065 | if (!on) | 1065 | if (!on) |
diff --git a/drivers/nfc/st21nfca/i2c.c b/drivers/nfc/st21nfca/i2c.c index 396cdafb3e36..4bff76baa341 100644 --- a/drivers/nfc/st21nfca/i2c.c +++ b/drivers/nfc/st21nfca/i2c.c | |||
@@ -177,10 +177,10 @@ static void st21nfca_hci_add_len_crc(struct sk_buff *skb) | |||
177 | crc = ~crc; | 177 | crc = ~crc; |
178 | 178 | ||
179 | tmp = crc & 0x00ff; | 179 | tmp = crc & 0x00ff; |
180 | *(u8 *)skb_put(skb, 1) = tmp; | 180 | skb_put_u8(skb, tmp); |
181 | 181 | ||
182 | tmp = (crc >> 8) & 0x00ff; | 182 | tmp = (crc >> 8) & 0x00ff; |
183 | *(u8 *)skb_put(skb, 1) = tmp; | 183 | skb_put_u8(skb, tmp); |
184 | } | 184 | } |
185 | 185 | ||
186 | static void st21nfca_hci_remove_len_crc(struct sk_buff *skb) | 186 | static void st21nfca_hci_remove_len_crc(struct sk_buff *skb) |
@@ -214,7 +214,7 @@ static int st21nfca_hci_i2c_write(void *phy_id, struct sk_buff *skb) | |||
214 | st21nfca_hci_add_len_crc(skb); | 214 | st21nfca_hci_add_len_crc(skb); |
215 | 215 | ||
216 | /* add ST21NFCA_SOF_EOF on tail */ | 216 | /* add ST21NFCA_SOF_EOF on tail */ |
217 | *(u8 *)skb_put(skb, 1) = ST21NFCA_SOF_EOF; | 217 | skb_put_u8(skb, ST21NFCA_SOF_EOF); |
218 | /* add ST21NFCA_SOF_EOF on head */ | 218 | /* add ST21NFCA_SOF_EOF on head */ |
219 | *(u8 *)skb_push(skb, 1) = ST21NFCA_SOF_EOF; | 219 | *(u8 *)skb_push(skb, 1) = ST21NFCA_SOF_EOF; |
220 | 220 | ||
diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index 168adcc46cb8..2b26f762fbc3 100644 --- a/drivers/nfc/st95hf/core.c +++ b/drivers/nfc/st95hf/core.c | |||
@@ -949,7 +949,7 @@ static int st95hf_in_send_cmd(struct nfc_digital_dev *ddev, | |||
949 | switch (stcontext->current_rf_tech) { | 949 | switch (stcontext->current_rf_tech) { |
950 | case NFC_DIGITAL_RF_TECH_106A: | 950 | case NFC_DIGITAL_RF_TECH_106A: |
951 | len_data_to_tag = skb->len + 1; | 951 | len_data_to_tag = skb->len + 1; |
952 | *(u8 *)skb_put(skb, 1) = stcontext->sendrcv_trflag; | 952 | skb_put_u8(skb, stcontext->sendrcv_trflag); |
953 | break; | 953 | break; |
954 | case NFC_DIGITAL_RF_TECH_106B: | 954 | case NFC_DIGITAL_RF_TECH_106B: |
955 | case NFC_DIGITAL_RF_TECH_ISO15693: | 955 | case NFC_DIGITAL_RF_TECH_ISO15693: |