diff options
| author | Igor Korotin <igor.korotin.linux@gmail.com> | 2025-11-16 16:22:04 +0000 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2025-11-18 10:28:25 +1300 |
| commit | d05b8e97690fa19be39f0af03e7f117f601b6319 (patch) | |
| tree | f3a4b3a1bc29873a17f211aefede0ea4f3bfc1b8 /samples/rust/Kconfig | |
| parent | f3cc26a417b77a07ff4418f7621dd318a1c533b1 (diff) | |
| download | linux-next-d05b8e97690fa19be39f0af03e7f117f601b6319.tar.gz linux-next-d05b8e97690fa19be39f0af03e7f117f601b6319.zip | |
samples: rust: add Rust I2C sample driver
Add a new `rust_driver_i2c` sample, showing how to create a new
i2c driver using ACPI/OF/Legacy ID tables.
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Igor Korotin <igor.korotin.linux@gmail.com>
Link: https://patch.msgid.link/20251116162204.171518-1-igor.korotin.linux@gmail.com
Signed-off-by: Danilo Krummrich <dakr@kernel.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 c376eb899b7a..181466319588 100644 --- a/samples/rust/Kconfig +++ b/samples/rust/Kconfig @@ -84,6 +84,17 @@ config SAMPLE_RUST_DEBUGFS_SCOPED If unsure, say N. +config SAMPLE_RUST_DRIVER_I2C + tristate "I2C Driver" + depends on I2C=y + help + This option builds the Rust I2C driver sample. + + To compile this as a module, choose M here: + the module will be called rust_driver_i2c. + + If unsure, say N. + config SAMPLE_RUST_DRIVER_PCI tristate "PCI Driver" depends on PCI |
