From: Mark Lord Date: Sat, 19 Apr 2008 19:05:50 +0000 (-0400) Subject: sata_mv: simplify freeze/thaw bit-shift calculations X-Git-Tag: v2.6.26-rc1~1060^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cfd19aeb8c8b6291a9d11143b4d8f3dac508ed4;p=pandora-kernel.git sata_mv: simplify freeze/thaw bit-shift calculations Introduce the MV_PORT_TO_SHIFT_AND_HARDPORT() macro, to centralize/simplify various scattered bits of logic for calculating bit shifts and the like. Some of the places that do this get it wrong, too, so consolidating the algorithm at one place will help keep the code correct. For now, we use the new macro in mv_eh_{freeze,thaw}. A subsequent patch will re-use this in the interrupt handlers Signed-off-by: Mark Lord Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed