nfc: fix typo "occured" in comments
PATCH 1/1 nfc: fix typo "occured" in comments
Correct "occured" to "occurred", reported by scripts/checkpatch.pl using the misspelling list in scripts/spelling.txt. Only touches comments, no code changes.
--- drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/st21nfca/i2c.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/nfc/microread/i2c.c +1 -1
@@ -39,7 +39,7 @@ struct microread_i2c_phy {struct nfc_hci_dev *hdev;int hard_fault;/* -* < 0 if hardware error occured (e.g. i2c err) +* < 0 if hardware error occurred (e.g. i2c err) * and prevents normal operation. */ };
drivers/nfc/pn544/i2c.c +1 -1
@@ -169,7 +169,7 @@ struct pn544_i2c_phy {int run_mode;int hard_fault;/* -* < 0 if hardware error occured (e.g. i2c err) +* < 0 if hardware error occurred (e.g. i2c err) * and prevents normal operation. */ };
drivers/nfc/st21nfca/i2c.c +1 -1
@@ -66,7 +66,7 @@ struct st21nfca_i2c_phy {int run_mode;/* -* < 0 if hardware error occured (e.g. i2c err) +* < 0 if hardware error occurred (e.g. i2c err) * and prevents normal operation. */ int hard_fault;
Signature · 1 line
2.48.1
David Heidelberg
maintainerQuoted 4 lines · Hemanth Selam
Correct "occured" to "occurred", reported by
scripts/checkpatch.plusing the misspelling list inscripts/spelling.txt. Only touches comments, no code changes.
Quoted 8 lines
Assisted-by Cursor:claude-opus-5Signed-off-by Hemanth Selam <[email protected]>--- drivers/nfc/microread/i2c.c | 2 +- drivers/nfc/pn544/i2c.c | 2 +- drivers/nfc/st21nfca/i2c.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Heya, you don't need Artificial Intelligence for that, you can use
$ codespell drivers/nfc/* drivers/nfc/fdp/fdp.c:123: nd ==> and, 2nd drivers/nfc/fdp/fdp.c:126: nd ==> and, 2nd drivers/nfc/fdp/fdp.c:127: nd ==> and, 2nd drivers/nfc/fdp/fdp.c:138: nd ==> and, 2nd drivers/nfc/fdp/i2c.c:270: inclue ==> include drivers/nfc/microread/i2c.c:42: occured ==> occurred drivers/nfc/nfcmrvl/uart.c:180: sate ==> state drivers/nfc/pn533/uart.c:35: propability ==> probability drivers/nfc/pn533/uart.c:144: errornous ==> erroneous drivers/nfc/pn533/usb.c:215: stange ==> strange, stage, stance drivers/nfc/pn544/i2c.c:172: occured ==> occurred drivers/nfc/port100.c:104: Theses ==> These, Thesis drivers/nfc/st-nci/i2c.c:3: familly ==> family drivers/nfc/st-nci/ndlc.c:111: aknowledge ==> acknowledge drivers/nfc/st-nci/ndlc.c:172: aknowledge ==> acknowledge drivers/nfc/st-nci/spi.c:215: functionnalities ==> functionalities drivers/nfc/st21nfca/core.c:468: respone ==> response, respond drivers/nfc/st21nfca/i2c.c:28: mecanism ==> mechanism drivers/nfc/st21nfca/i2c.c:69: occured ==> occurred drivers/nfc/st21nfca/i2c.c:365: mecanism ==> mechanism drivers/nfc/st21nfca/i2c.c:385: corrupeted ==> corrupted drivers/nfc/st95hf/core.c:455: milisecond ==> millisecond drivers/nfc/st95hf/core.c:487: milisecond ==> millisecond drivers/nfc/st95hf/core.c:493: milisecond ==> millisecond drivers/nfc/st95hf/core.c:524: milisecond ==> millisecond drivers/nfc/st95hf/core.c:634: cofigure ==> configure drivers/nfc/st95hf/core.c:787: cant ==> can't
Feel free to check validity and fix everything relevant (sometimes it report false-positive).
David
You are right, and codespell is in fact where these came from - I ran it across the tree and fed the results through checkpatch. The model was used for the packaging around that, not for finding the words, which in hindsight was not a good use of it.
Thanks for the extra hits. If you would like them fixed I can fold
drivers/nfc/fdp/fdp.c nd ==> and
drivers/nfc/fdp/i2c.c:270 inclue ==> include
into a v2 of this patch, though "nd" there is part of "2nd" in at least some of those lines and needs reading before it is changed - which is the mistake I have already made elsewhere in this series. Let me know if you want the v2.