]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pwm: add devm_pwm_get() and devm_pwm_put()
authorAlexandre Courbot <acourbot@nvidia.com>
Wed, 1 Aug 2012 10:20:58 +0000 (19:20 +0900)
committerThierry Reding <thierry.reding@avionic-design.de>
Mon, 20 Aug 2012 10:00:20 +0000 (12:00 +0200)
commitc5d0b8ac87577fc66d027661b0144e7dbae8545f
tree593746de67981482436c344296f1270bbad03fce
parent5424a12630d935d3b6d2924bd16493d571bc7937
pwm: add devm_pwm_get() and devm_pwm_put()

Add resource managed variants of pwm_get() and pwm_put() for
convenience. Code is largely inspired by the equivalent devm functions
of the regulator framework.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Documentation/driver-model/devres.txt
Documentation/pwm.txt
drivers/pwm/core.c
include/linux/pwm.h