]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
nfc: hci: Add comment to explain NFC_HCI_MAX_PIPES
authorChristophe Ricard <christophe.ricard@gmail.com>
Tue, 31 Mar 2015 06:02:18 +0000 (08:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 5 Apr 2015 22:18:20 +0000 (00:18 +0200)
According to specification etsi 102 622 chapter 4.4 pipes identifier
is 7 bits long giving a 127 possible pipes value.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
include/net/nfc/hci.h

index ab672b537dd4618dc25c31d1e10f400c96284fd2..020a814bc8ed7145f7b7491c6c21ba07b01e9c36 100644 (file)
@@ -83,6 +83,10 @@ struct nfc_hci_pipe {
 };
 
 #define NFC_HCI_MAX_CUSTOM_GATES       50
+/*
+ * According to specification 102 622 chapter 4.4 Pipes,
+ * the pipe identifier is 7 bits long.
+ */
 #define NFC_HCI_MAX_PIPES              127
 struct nfc_hci_init_data {
        u8 gate_count;