]> git.baikalelectronics.ru Git - kernel.git/commit
pwm: Add table-based lookup for static mappings
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 26 Mar 2012 06:42:48 +0000 (08:42 +0200)
committerThierry Reding <thierry.reding@avionic-design.de>
Fri, 15 Jun 2012 10:56:53 +0000 (12:56 +0200)
commitd3ab8709a6d2cbe2d37c812458170516e666080f
tree814645a7608376af451f9721dd3da585a87bbdd6
parentce8a57119d7136100d81c836659d31ef31e65a45
pwm: Add table-based lookup for static mappings

In order to get rid of the global namespace for PWM devices, this commit
provides an alternative method, similar to that of the regulator or
clock frameworks, for registering a static mapping for PWM devices. This
works by providing a table with a provider/consumer map in the board
setup code.

With the new pwm_get() and pwm_put() functions available, usage of
pwm_request() and pwm_free() becomes deprecated.

Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Documentation/pwm.txt
drivers/pwm/core.c
include/linux/pwm.h