Skip to content
Snippets Groups Projects
Commit c172708d authored by Mark Brown's avatar Mark Brown
Browse files

regulator: core: Use a struct to pass in regulator runtime configuration


Rather than adding new arguments to regulator_register() every time we
want to add a new bit of dynamic information at runtime change the function
to take these via a struct. By doing this we avoid needing to do further
changes like the recent addition of device tree support which required each
regulator driver to be updated to take an additional parameter.

The regulator_desc which should (mostly) be static data is still passed
separately as most drivers are able to configure this statically at build
time.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 1474e4db
No related branches found
No related tags found
No related merge requests found
Showing
with 129 additions and 55 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment