Skip to content

Commit

Permalink
spi: Add spi low level support
Browse files Browse the repository at this point in the history
  • Loading branch information
CohenArthur committed Apr 29, 2021
1 parent 2b3f8f1 commit 6f70b93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/kernel/bindings_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/miscdevice.h>
#include <linux/poll.h>
#include <linux/mm.h>
#include <linux/spi/spi.h>
#include <uapi/linux/android/binder.h>

// `bindgen` gets confused at certain things
Expand Down
3 changes: 3 additions & 0 deletions rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ pub mod user_ptr;
pub use crate::error::{Error, KernelResult};
pub use crate::types::{CStr, Mode};

#[cfg(CONFIG_SPI)]
pub mod spi;

/// Page size defined in terms of the `PAGE_SHIFT` macro from C.
///
/// [`PAGE_SHIFT`]: ../../../include/asm-generic/page.h
Expand Down

0 comments on commit 6f70b93

Please sign in to comment.