From: Paul Walmsley Date: Fri, 28 Mar 2008 06:26:12 +0000 (-0600) Subject: OMAP2/3 clock: convert mask_to_shift() to __ffs() X-Git-Tag: v2.6.25-omap1~99 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f417e171cd2d2bd0302c8f420ee97295a165a39c;p=pandora-kernel.git OMAP2/3 clock: convert mask_to_shift() to __ffs() In OMAP2/3 clock code, we've used mask_to_shift() to convert bitmasks into shift values, via "ffs(mask) - 1". It turns out that there is already a Linux idiom for this in asm/bitops.h: __ffs(). (Not to be confused with ffs(), of course. You wouldn't do that, would you?) When in Rome, do as the Romans. Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- Reading git-diff-tree failed