summaryrefslogtreecommitdiff
path: root/chip/ish/ish_dma.h
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2019-04-15 11:14:41 -0600
committerchrome-bot <chrome-bot@chromium.org>2019-04-24 15:52:08 -0700
commitd2ac74c21848c1cec16d5e72d28f93eb15c5d869 (patch)
tree729d55380b5edd52890c39f1730492a7e7748712 /chip/ish/ish_dma.h
parent2ece52589486990cca666dc3ebc4164d5f2c0aed (diff)
downloadchrome-ec-d2ac74c21848c1cec16d5e72d28f93eb15c5d869.tar.gz
ish: refactor bit-mask constants to use BIT macro
We should be using the BIT(n) macro rather than (1 << n), as it prevents errors, and makes the intended purpose a little bit easier to read. BRANCH=none BUG=none TEST=make buildall -j Change-Id: Ia727ac2f8e5abfb852ba78d5cba19d7c8af72839 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1567688 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'chip/ish/ish_dma.h')
-rw-r--r--chip/ish/ish_dma.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/chip/ish/ish_dma.h b/chip/ish/ish_dma.h
index 9033c9b419..8b06121234 100644
--- a/chip/ish/ish_dma.h
+++ b/chip/ish/ish_dma.h
@@ -15,9 +15,9 @@
#define PAGING_CHAN 0
#define KERNEL_CHAN 1
-#define DST_IS_DRAM (1 << 0)
-#define SRC_IS_DRAM (1 << 1)
-#define NON_SNOOP (1 << 2)
+#define DST_IS_DRAM BIT(0)
+#define SRC_IS_DRAM BIT(1)
+#define NON_SNOOP BIT(2)
/* ISH5 and on */
#define RS0 0x0