summaryrefslogtreecommitdiffstats
path: root/drivers/telephony
diff options
context:
space:
mode:
authorMark Lord <liml@rtr.ca>2008-04-19 15:05:50 -0400
committerJeff Garzik <jgarzik@redhat.com>2008-04-25 01:25:36 -0400
commit1cfd19aeb8c8b6291a9d11143b4d8f3dac508ed4 (patch)
tree78cf6aa4b73149fede2f72ad3f5423a6d78b84d7 /drivers/telephony
parentf9f7fe014fc7197a5f36f9d9859cbb27c3bdd2ab (diff)
downloadop-kernel-dev-1cfd19aeb8c8b6291a9d11143b4d8f3dac508ed4.zip
op-kernel-dev-1cfd19aeb8c8b6291a9d11143b4d8f3dac508ed4.tar.gz
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 <mlord@pobox.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/telephony')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud