linux/drivers/nfc
Johannes Berg af72868b90 networking: make skb_pull & friends return void pointers
It seems like a historic accident that these return unsigned char *,
and in many places that means casts are required, more often than not.

Make these functions return void * and remove all the casts across
the tree, adding a (u8 *) cast only where the unsigned char pointer
was used directly, all done with the following spatch:

    @@
    expression SKB, LEN;
    typedef u8;
    identifier fn = {
            skb_pull,
            __skb_pull,
            skb_pull_inline,
            __pskb_pull_tail,
            __pskb_pull,
            pskb_pull
    };
    @@
    - *(fn(SKB, LEN))
    + *(u8 *)fn(SKB, LEN)

    @@
    expression E, SKB, LEN;
    identifier fn = {
            skb_pull,
            __skb_pull,
            skb_pull_inline,
            __pskb_pull_tail,
            __pskb_pull,
            pskb_pull
    };
    type T;
    @@
    - E = ((T *)(fn(SKB, LEN)))
    + E = fn(SKB, LEN)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-16 11:48:39 -04:00
..
fdp networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
microread networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
nfcmrvl networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
nxp-nci networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
pn533 networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
pn544 networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
s3fwrn5 networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
st-nci nfc: st-nci: Move loopback usage from HCI to NCI 2016-05-04 01:51:42 +02:00
st21nfca networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
st95hf networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
Kconfig NFC: remove TI nfcwilink driver 2017-04-01 23:04:30 +02:00
Makefile NFC: remove TI nfcwilink driver 2017-04-01 23:04:30 +02:00
mei_phy.c mei: bus: split RX and async notification callbacks 2016-11-17 16:37:49 +01:00
mei_phy.h mei: bus: complete variable rename of type struct mei_cl_device 2015-09-20 19:31:09 -07:00
nfcsim.c NFC: nfcsim: Simulate lost frames through debugfs entry 2016-07-19 23:24:49 +02:00
port100.c networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
trf7970a.c NFC: trf7970a: Add device tree option of 1.8 Volt IO voltage 2017-04-05 11:04:03 +02:00