net: nfc: Fix spelling errors in net/nfc module
authorZheng Yongjun <zhengyongjun3@huawei.com>
Mon, 5 Apr 2021 10:54:35 +0000 (18:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Apr 2021 19:58:31 +0000 (12:58 -0700)
These patches fix a series of spelling errors in net/nfc module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/nfc/digital_dep.c
net/nfc/nci/core.c
net/nfc/nci/uart.c

index 5971fb6f51cc76a034bfc4459f2e9fae710fde6a..1150731126e2a23961a490cb1a41dbe49529c46d 100644 (file)
@@ -1217,7 +1217,7 @@ static void digital_tg_recv_dep_req(struct nfc_digital_dev *ddev, void *arg,
 
                /* ACK */
                if (ddev->atn_count) {
-                       /* The target has previously recevied one or more ATN
+                       /* The target has previously received one or more ATN
                         * PDUs.
                         */
                        ddev->atn_count = 0;
index 59257400697d1d3f532701856a84d1c8f8539527..9a585332ea84a488f6186058900e2ada8a3864fe 100644 (file)
@@ -1507,7 +1507,7 @@ static void nci_rx_work(struct work_struct *work)
                }
        }
 
-       /* check if a data exchange timout has occurred */
+       /* check if a data exchange timeout has occurred */
        if (test_bit(NCI_DATA_EXCHANGE_TO, &ndev->flags)) {
                /* complete the data exchange transaction, if exists */
                if (test_bit(NCI_DATA_EXCHANGE, &ndev->flags))
index 1204c438e87dc5ce92200f39f9888615923bb96b..6af5752cde0921cfd0881d362ed78051c5ab0d45 100644 (file)
@@ -234,7 +234,7 @@ static void nci_uart_tty_wakeup(struct tty_struct *tty)
  *     Called by tty low level driver when receive data is
  *     available.
  *
- * Arguments:  tty          pointer to tty isntance data
+ * Arguments:  tty          pointer to tty instance data
  *             data         pointer to received data
  *             flags        pointer to flags for data
  *             count        count of received data in bytes
@@ -374,7 +374,7 @@ static int nci_uart_default_recv_buf(struct nci_uart *nu, const u8 *data,
                data += chunk_len;
                count -= chunk_len;
 
-               /* Chcek if packet is fully received */
+               /* Check if packet is fully received */
                if (nu->rx_packet_len == nu->rx_skb->len) {
                        /* Pass RX packet to driver */
                        if (nu->ops.recv(nu, nu->rx_skb) != 0)