Skip to content

Commit

Permalink
rust: regulator: add regulator consumer abstractions
Browse files Browse the repository at this point in the history
Add a rust abstraction for the regulator consumer API.

Signed-off-by: Fabien Parent <[email protected]>
  • Loading branch information
Fabo committed Nov 27, 2023
1 parent afd17dc commit e0bb715
Show file tree
Hide file tree
Showing 4 changed files with 421 additions and 0 deletions.
1 change: 1 addition & 0 deletions rust/bindings/bindings_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <linux/errname.h>
#include <linux/io-pgtable.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/slab.h>
#include <linux/refcount.h>
#include <linux/wait.h>
Expand Down
2 changes: 2 additions & 0 deletions rust/kernel/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ pub mod of;
pub mod platform;
pub mod prelude;
pub mod print;
#[cfg(CONFIG_REGULATOR)]
pub mod regulator;
mod static_assert;
#[doc(hidden)]
pub mod std_vendor;
Expand Down
Loading

0 comments on commit e0bb715

Please sign in to comment.