[PATCH 01/15 v3] regulator: core: Track dangling GPIO descriptors

2018-12-05 Thread Linus Walleij
If a GPIO descriptor is passed to the regulator_register() function inside the config->ena_gpiod callers must be sure that once they call this API the regulator core owns that descriptor and will make sure to issue gpiod_put() on it, no matter whether the call is successful or not. For device

[PATCH 01/15 v3] regulator: core: Track dangling GPIO descriptors

2018-12-05 Thread Linus Walleij
If a GPIO descriptor is passed to the regulator_register() function inside the config->ena_gpiod callers must be sure that once they call this API the regulator core owns that descriptor and will make sure to issue gpiod_put() on it, no matter whether the call is successful or not. For device