]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: pci: fix typos in Bar struct's comments
authorMarko Turk <mt@markoturk.info>
Mon, 5 Jan 2026 21:37:57 +0000 (22:37 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 6 Jan 2026 19:58:43 +0000 (20:58 +0100)
commit9f92d7d1cb9cccc6c703ca53d4f1d1acca79b598
treef88d353140ddabc301d489481334f75303645931
parenta9a42f0754b6c69525612d678b73da790e28b9fd
rust: pci: fix typos in Bar struct's comments

Fix a typo in the doc-comment of the Bar structure: 'inststance ->
instance'.

Add also 'is' to the comment inside Bar's `new()` function (suggested
by Dirk):
// `pdev` is valid by the invariants of `Device`.

Fixes: bf9651f84b4e ("rust: pci: implement I/O mappable `pci::Bar`")
Suggested-by: Dirk Behme <dirk.behme@de.bosch.com>
Signed-off-by: Marko Turk <mt@markoturk.info>
Reviewed-by: Dirk Behme <dirk.behme@de.bosch.com>
Link: https://patch.msgid.link/20260105213726.73000-2-mt@markoturk.info
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/pci/io.rs