]> 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>
Fri, 17 Aug 2012 13:46:06 +0000 (15:46 +0200)
commitd767a4106c494307f019eee0ea2008ba20cea5a5
treebe6d17d9d116c143b047b6830ff9f28a501bb64d
parent68998d630c623c96d3ff5858097ec17f334ce2a7
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