summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2020-06-26 14:05:25 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-29 18:45:53 +0200
commitba2104c24aba1fa7e19d53f08c985526a6786d8b (patch)
tree9ad4145c30069713e62003ada7fa8fd0d0a23919
parent9eea2a499fa86b0822d27f3cd34c4554c6a9c2e6 (diff)
downloadlwn-ba2104c24aba1fa7e19d53f08c985526a6786d8b.tar.gz
lwn-ba2104c24aba1fa7e19d53f08c985526a6786d8b.zip
misc: pti: Fix documentation for bit-rotted function pti_tty_driver_write()
The API has moved on since the original function header was authored. This changes brings the function's documentation back into line with reality, complete descriptions of the latest arguments to be used. Squashes the following W=1 kernel build warnings: drivers/misc/pti.c:510: warning: Function parameter or member 'tty' not described in 'pti_tty_driver_wr drivers/misc/pti.c:510: warning: Function parameter or member 'buf' not described in 'pti_tty_driver_wr drivers/misc/pti.c:510: warning: Excess function parameter 'filp' description in 'pti_tty_driver_write' drivers/misc/pti.c:510: warning: Excess function parameter 'data' description in 'pti_tty_driver_write' Cc: J Freyensee <james_p_freyensee@linux.intel.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20200626130525.389469-11-lee.jones@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/misc/pti.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index b7f510676cd6..07e9da7918eb 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -496,9 +496,8 @@ static void pti_tty_cleanup(struct tty_struct *tty)
* pti_tty_driver_write()- Write trace debugging data through the char
* interface to the PTI HW. Part of the misc device implementation.
*
- * @filp: Contains private data which is used to obtain
- * master, channel write ID.
- * @data: trace data to be written.
+ * @tty: tty struct containing pti information.
+ * @buf: trace data to be written.
* @len: # of byte to write.
*
* Returns: