]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - net/nfc/core.c
NFC: Reserve tx head and tail room
[mv-sheeva.git] / net / nfc / core.c
index b6fd4e1f20570683946c4b75925540fd1ba4be39..284e2f6a14ff490f287354bdd60058b87123d475 100644 (file)
@@ -322,7 +322,9 @@ struct nfc_dev *nfc_get_device(unsigned idx)
  * @supported_protocols: NFC protocols supported by the device
  */
 struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,
-                                       u32 supported_protocols)
+                                       u32 supported_protocols,
+                                       int tx_headroom,
+                                       int tx_tailroom)
 {
        static atomic_t dev_no = ATOMIC_INIT(0);
        struct nfc_dev *dev;
@@ -345,6 +347,8 @@ struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,
 
        dev->ops = ops;
        dev->supported_protocols = supported_protocols;
+       dev->tx_headroom = tx_headroom;
+       dev->tx_tailroom = tx_tailroom;
 
        spin_lock_init(&dev->targets_lock);
        nfc_genl_data_init(&dev->genl_data);