linux/Documentation/driver-model
Linus Walleij 891ddbc79a
gpio: Add devm_gpiod_unhinge()
This adds a function named devm_gpiod_unhinge() that removes
the resource management from a GPIO descriptor.

I am not sure if this is the best anglosaxon name for the
function, no other managed resources have an equivalent
currently, but I chose "unhinge" as the closest intuitive
thing I could imagine that fits Rusty Russell's API design
criterions "the obvious use is the correct one" and
"the name tells you how to use it".

The idea came out of a remark from Mark Brown that it should
be possible to handle over management of a resource from
devres to the regulator core, and indeed we can do that.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-12-11 01:04:23 +00:00
..
binding.txt docs/driver-model: Update device class docs 2011-08-24 16:01:24 -07:00
bus.txt doc: driver-model: improve wording "is provide the" 2014-12-29 15:29:33 -07:00
class.txt driver core: remove the driver-model structures from the documentation 2011-05-06 18:01:05 -07:00
design-patterns.txt Documentation: fix spelling in design-patterns 2013-12-19 10:10:32 -08:00
device.txt docs/driver-model: fix typo 2016-09-16 10:01:45 -06:00
devres.txt gpio: Add devm_gpiod_unhinge() 2018-12-11 01:04:23 +00:00
driver.txt driver core: remove DRIVER_ATTR 2017-09-19 09:20:33 +02:00
overview.txt DOCUMENTATION: Update overview.txt in Doc/driver-model. 2011-06-07 10:04:21 -07:00
platform.txt driver-core: platform: fix typo in documentation for multi-driver helper 2016-02-09 17:39:33 -08:00
porting.txt ARM: 8524/1: driver cohandle -EPROBE_DEFER from bus_type.match() 2016-02-16 16:28:51 +00:00