Skip to content

Commit ae4a84b

Browse files
committed
rust: regulator: Add support for regmap
The regulator API offer many helpers to help simplifies drivers that use the regmap API. This commit adds partial support for it, only the function needed by the NCV6336 driver were added. In case CONFIG_REGMAP=n, we create a dummy Regmap implementation in order to avoid to have to surround a lot of the declarations and statements with #[cfg(CONFIG_REGMAP)]. Signed-off-by: Fabien Parent <fabien.parent@linaro.org>
1 parent 4f64d6d commit ae4a84b

File tree

1 file changed

+227
-20
lines changed

1 file changed

+227
-20
lines changed

0 commit comments

Comments
 (0)