Skip to content

Commit

Permalink
rust: regulator: Add support for regmap
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Fabo committed Aug 25, 2024
1 parent 59212f8 commit 1a77e1c
Showing 1 changed file with 227 additions and 20 deletions.
Loading

0 comments on commit 1a77e1c

Please sign in to comment.