We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9a5ce4e + 977fee3 commit 0221de8Copy full SHA for 0221de8
1 file changed
rust/kernel/spi.rs
@@ -42,15 +42,15 @@ pub const USE_NONE: ToUse = ToUse {
42
pub trait SpiMethods {
43
const TO_USE: ToUse;
44
45
- fn probe(_spi_dev: SpiDevice) -> Result {
+ fn probe(mut _spi_dev: SpiDevice) -> Result {
46
Ok(())
47
}
48
49
- fn remove(_spi_dev: SpiDevice) -> Result {
+ fn remove(mut _spi_dev: SpiDevice) -> Result {
50
51
52
53
- fn shutdown(_spi_dev: SpiDevice) {}
+ fn shutdown(mut _spi_dev: SpiDevice) {}
54
55
56
/// Populate the TO_USE field in the `SpiMethods` implementer
0 commit comments