]> www.infradead.org Git - users/jedix/linux-maple.git/commit
device: rust: expand documentation for Device
authorDanilo Krummrich <dakr@kernel.org>
Tue, 22 Jul 2025 15:00:00 +0000 (17:00 +0200)
committerDanilo Krummrich <dakr@kernel.org>
Tue, 12 Aug 2025 13:23:46 +0000 (15:23 +0200)
commitd6e26c1ae4a602d8b7eeb39e23514f6f98d91eb5
tree8f18bf9c2d62b11e5cec50022b2926cbeb6824aa
parent82b3644d3deab496cc09f29f3449ede6824b3e8e
device: rust: expand documentation for Device

The documentation for the generic Device type is outdated and deserves
much more detail.

Hence, expand the documentation and cover topics such as device types,
device contexts, as well as information on how to use the generic device
infrastructure to implement bus and class specific device types.

Reviewed-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20250722150110.23565-3-dakr@kernel.org
[ Add empty line after code blocks, "in" -> "within", remove unnecessary
  pin annotations in class device example. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/device.rs