From: Ian Abbott Date: Fri, 14 Sep 2012 16:34:23 +0000 (+0100) Subject: staging: comedi: mite: use ilog2() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~204 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f015b6ad035d465d0ab30e9a441e5e8d18d4b7;p=pandora-kernel.git staging: comedi: mite: use ilog2() The static inline functions `MITE_IODWBSR_1_WSIZE_bits()` and `CR_RL()` in "mite.h" work out a base-2 logarithm using a `while` loop. Change them to use `ilog2()`. Also change `CR_RL()` to clamp the maximum value instead of printing an error. Signed-off-by: Ian Abbott Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed