Skip to content

Commit 09b670d

Browse files
committed
rust: regulator: add regulator consumer abstractions
Add a rust abstraction for the regulator consumer API. Signed-off-by: Fabien Parent <[email protected]>
1 parent 816c8af commit 09b670d

File tree

4 files changed

+428
-0
lines changed

4 files changed

+428
-0
lines changed

rust/bindings/bindings_helper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <linux/errname.h>
1212
#include <linux/io-pgtable.h>
1313
#include <linux/platform_device.h>
14+
#include <linux/regulator/consumer.h>
1415
#include <linux/slab.h>
1516
#include <linux/refcount.h>
1617
#include <linux/wait.h>

rust/kernel/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ pub mod of;
4848
pub mod platform;
4949
pub mod prelude;
5050
pub mod print;
51+
#[cfg(CONFIG_REGULATOR)]
52+
pub mod regulator;
5153
mod static_assert;
5254
#[doc(hidden)]
5355
pub mod std_vendor;

0 commit comments

Comments
 (0)