• Mark Brown's avatar
    regulator: core: Use a struct to pass in regulator runtime configuration · c172708d
    Mark Brown authored
    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>
    c172708d
gpio-regulator.c 8.98 KB