diff options
| author | Daniel Almeida <daniel.almeida@collabora.com> | 2025-08-25 15:18:06 -0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-24 13:13:04 +0200 |
| commit | cc80dbb73b5d0c75b105e5214f34e1360670e0a5 (patch) | |
| tree | 284547a1504e68ab1f68b47b30bf92719fb69ba5 /samples/rust/Kconfig | |
| parent | e7e2296b0ecf9b6e934f7a1118cee91d4d486a84 (diff) | |
samples: rust: add a USB driver sample
In light of the newly-added Rust abstractions for USB devices and
drivers, add a sample USB rust driver that serves both to showcase what
is currently supported, as well as be the only user of the USB
abstractions for now.
Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Link: https://lore.kernel.org/r/20250825-b4-usb-v1-2-7aa024de7ae8@collabora.com
[ force USB = y for now - gregkh ]
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/rust/Kconfig')
| -rw-r--r-- | samples/rust/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/samples/rust/Kconfig b/samples/rust/Kconfig index 7f7371a004ee..6d6e4d8c88cb 100644 --- a/samples/rust/Kconfig +++ b/samples/rust/Kconfig @@ -83,6 +83,17 @@ config SAMPLE_RUST_DRIVER_PLATFORM If unsure, say N. +config SAMPLE_RUST_DRIVER_USB + tristate "USB Driver" + depends on USB = y + help + This option builds the Rust USB driver sample. + + To compile this as a module, choose M here: + the module will be called rust_driver_usb. + + If unsure, say N. + config SAMPLE_RUST_DRIVER_FAUX tristate "Faux Driver" help |