dma40: use helpers for channel type check
commit724a8577d80c6f8e9ac680be1cf419eddbd6f2a1
authorRabin Vincent <rabin.vincent@stericsson.com>
Tue, 25 Jan 2011 10:18:08 +0000 (25 11:18 +0100)
committerDan Williams <dan.j.williams@intel.com>
Mon, 31 Jan 2011 06:27:16 +0000 (30 22:27 -0800)
tree9e6dd06f0ef4e5775d3f1000c0d8c943facfb519
parent8ca84687b91322b9eafeaf4da43a21684cd0316e
dma40: use helpers for channel type check

The somewhat confusing check

d40c->log_num == D40_PHY_CHAN

and its variants are used in several places to check if a channel is logical or
physical.  Use appropriately named helpers to do this to make the code more
readable.

Acked-by: Per Forlin <per.forlin@stericsson.com>
Acked-by: Jonas Aaberg <jonas.aberg@stericsson.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/ste_dma40.c