]> git.baikalelectronics.ru Git - kernel.git/commit
NFC: nfcmrvl: fix kernel-doc syntax in file headers
authorAditya Srivastava <yashsri421@gmail.com>
Sun, 23 May 2021 21:09:09 +0000 (02:39 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 May 2021 00:26:38 +0000 (17:26 -0700)
commit4dd649d130c634415c26df771e09e373f77fc688
tree0de0ba2c3540001323b6478a9f9bbe12920b0267
parent474a2ddaa192777522a7499784f1d60691cd831a
NFC: nfcmrvl: fix kernel-doc syntax in file headers

The opening comment mark '/**' is used for highlighting the beginning of
kernel-doc comments.
The header for drivers/nfc/nfcmrvl follows this syntax, but the content
inside does not comply with kernel-doc.

This line was probably not meant for kernel-doc parsing, but is parsed
due to the presence of kernel-doc like comment syntax(i.e, '/**'), which
causes unexpected warnings from kernel-doc.
For e.g., running scripts/kernel-doc -none on drivers/nfc/nfcmrvl/spi.c
causes warning:
warning: expecting prototype for Marvell NFC(). Prototype was for SPI_WAIT_HANDSHAKE() instead

Provide a simple fix by replacing such occurrences with general comment
format, i.e. '/*', to prevent kernel-doc from parsing it.

Signed-off-by: Aditya Srivastava <yashsri421@gmail.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/nfc/nfcmrvl/fw_dnld.h
drivers/nfc/nfcmrvl/i2c.c
drivers/nfc/nfcmrvl/nfcmrvl.h
drivers/nfc/nfcmrvl/spi.c
drivers/nfc/nfcmrvl/uart.c
drivers/nfc/nfcmrvl/usb.c