Skip to content

Commit dd5792c

Browse files
committed
rust: regulator: add regulator consumer abstractions
Add a rust abstraction for the regulator consumer API. Signed-off-by: Fabien Parent <fabien.parent@linaro.org>
1 parent af05c8b commit dd5792c

File tree

4 files changed

+421
-0
lines changed

4 files changed

+421
-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
@@ -49,6 +49,8 @@ pub mod of;
4949
pub mod platform;
5050
pub mod prelude;
5151
pub mod print;
52+
#[cfg(CONFIG_REGULATOR)]
53+
pub mod regulator;
5254
mod static_assert;
5355
#[doc(hidden)]
5456
pub mod std_vendor;

0 commit comments

Comments
 (0)