Skip to content

Commit 4f64d6d

Browse files
committed
rust: regulator: add Regulator Driver abstraction
This commit adds a Rust abstraction to write Regulator drivers. Only the features used by the NCV6336 driver were added to this abstraction. Signed-off-by: Fabien Parent <fabien.parent@linaro.org>
1 parent 9a9834f commit 4f64d6d

File tree

3 files changed

+752
-0
lines changed

3 files changed

+752
-0
lines changed

rust/bindings/bindings_helper.h

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/refcount.h>
2121
#include <linux/regmap.h>
2222
#include <linux/regulator/consumer.h>
23+
#include <linux/regulator/driver.h>
2324
#include <linux/sched.h>
2425
#include <linux/slab.h>
2526
#include <linux/wait.h>

rust/kernel/regulator.rs

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//! SoC Regulators
44
55
pub mod consumer;
6+
pub mod driver;
67

78
use crate::{
89
bindings,

0 commit comments

Comments
 (0)