• L
    regulator: core: Support passing an initialized GPIO enable descriptor · e45e290a
    Linus Walleij 提交于
    We are currently passing a GPIO number from the global GPIO numberspace
    into the regulator core for handling enable GPIOs. This is not good
    since it ties into the global GPIO numberspace and uses gpio_to_desc()
    to overcome this.
    
    Start supporting passing an already initialized GPIO descriptor to the
    core instead: leaf drivers pick their descriptors, associated directly
    with the device node (or from ACPI or from a board descriptor table)
    and use that directly without any roundtrip over the global GPIO
    numberspace.
    
    This looks messy since it adds a bunch of extra code in the core, but
    at the end of the patch series we will delete the handling of the GPIO
    number and only deal with descriptors so things end up neat.
    Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: NMark Brown <broonie@kernel.org>
    e45e290a
driver.h 19.1 KB