summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWesley Sheng <wesley.sheng@amd.com>2020-05-26 10:59:43 +0300
committerJon Mason <jdmason@kudzu.us>2020-06-06 03:02:08 +0300
commit46f21af862656c477387f2256adc1005503db67d (patch)
tree065010d9f58ab801088472803446e7ab176137dc /include
parent893733c58d59f43e4c5219bf9ab9e9d39bb14289 (diff)
downloadlinux-46f21af862656c477387f2256adc1005503db67d.tar.xz
NTB: correct ntb_peer_spad_addr and ntb_peer_spad_read comment typos
The comment for ntb_peer_spad_addr and ntb_peer_spad_read incorrectly referred to peer doorbell register and local scratchpad register. Signed-off-by: Wesley Sheng <wesley.sheng@amd.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'include')
-rw-r--r--include/linux/ntb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ntb.h b/include/linux/ntb.h
index a07252f78770..191b524e5c0d 100644
--- a/include/linux/ntb.h
+++ b/include/linux/ntb.h
@@ -1351,7 +1351,7 @@ static inline int ntb_spad_write(struct ntb_dev *ntb, int sidx, u32 val)
* @sidx: Scratchpad index.
* @spad_addr: OUT - The address of the peer scratchpad register.
*
- * Return the address of the peer doorbell register. This may be used, for
+ * Return the address of the peer scratchpad register. This may be used, for
* example, by drivers that offload memory copy operations to a dma engine.
*
* Return: Zero on success, otherwise an error number.
@@ -1373,7 +1373,7 @@ static inline int ntb_peer_spad_addr(struct ntb_dev *ntb, int pidx, int sidx,
*
* Read the peer scratchpad register, and return the value.
*
- * Return: The value of the local scratchpad register.
+ * Return: The value of the peer scratchpad register.
*/
static inline u32 ntb_peer_spad_read(struct ntb_dev *ntb, int pidx, int sidx)
{