aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/core.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2011-08-29 14:52:20 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-08-29 14:52:20 -0400
commitba6e5eb107b4b26444cb67ce6fb8eb0973a97964 (patch)
tree9377baf652e0cd8360372020b0386e238d07a30d /net/nfc/core.c
parentf3116f62cb56ef5efd172371fab688bb27529f69 (diff)
parenta508a6ea234571e0e7d1e9f2455fc1eca54d1fef (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'net/nfc/core.c')
-rw-r--r--net/nfc/core.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/nfc/core.c b/net/nfc/core.c
index b6fd4e1f2057..284e2f6a14ff 100644
--- a/net/nfc/core.c
+++ b/net/nfc/core.c
@@ -322,7 +322,9 @@ struct nfc_dev *nfc_get_device(unsigned idx)
322 * @supported_protocols: NFC protocols supported by the device 322 * @supported_protocols: NFC protocols supported by the device
323 */ 323 */
324struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops, 324struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,
325 u32 supported_protocols) 325 u32 supported_protocols,
326 int tx_headroom,
327 int tx_tailroom)
326{ 328{
327 static atomic_t dev_no = ATOMIC_INIT(0); 329 static atomic_t dev_no = ATOMIC_INIT(0);
328 struct nfc_dev *dev; 330 struct nfc_dev *dev;
@@ -345,6 +347,8 @@ struct nfc_dev *nfc_allocate_device(struct nfc_ops *ops,
345 347
346 dev->ops = ops; 348 dev->ops = ops;
347 dev->supported_protocols = supported_protocols; 349 dev->supported_protocols = supported_protocols;
350 dev->tx_headroom = tx_headroom;
351 dev->tx_tailroom = tx_tailroom;
348 352
349 spin_lock_init(&dev->targets_lock); 353 spin_lock_init(&dev->targets_lock);
350 nfc_genl_data_init(&dev->genl_data); 354 nfc_genl_data_init(&dev->genl_data);