From: Thierry Reding Date: Mon, 26 Mar 2012 06:42:48 +0000 (+0200) Subject: pwm: Add table-based lookup for static mappings X-Git-Tag: v3.6-rc1~66^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8138d2ddbcca2a100482dac390133f83c5a60f94;p=pandora-kernel.git 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 Reviewed-by: Mark Brown Signed-off-by: Thierry Reding --- Reading git-diff-tree failed