From: Axel Lin Date: Fri, 20 Jul 2012 15:10:55 +0000 (+0800) Subject: regulator: Use BUCK_FPWM_[MASK|SHIFT] macros to replace buck_pmap table X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~106^2^5~39 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f4c46d2e2150ef68d4c100d74f186ae93f00f3c;p=pandora-kernel.git regulator: Use BUCK_FPWM_[MASK|SHIFT] macros to replace buck_pmap table Below is the buck_pmap mapping table: BUCK1: mask = 1 << 0, shift = 0 BUCK2: mask = 1 << 1, shift = 1 BUCK3: mask = 1 << 2, shift = 2 BUCK4: mask = 1 << 3, shift = 3 The mask and shift can be easily calculated by: mask = 1 << BUCK_ID shift = BUCK_ID This patch defines BUCK_FPWM_MASK and BUCK_FPWM_SHIFT macros to replace buck_pmap mapping table. Signed-off-by: Axel Lin Acked-by: Milo(Woogyom) Kim Tested-by: Milo(Woogyom) Kim Signed-off-by: Mark Brown --- Reading git-diff-tree failed