projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43d0b10
)
rtc: mcp795: Prefer using the BIT() macro.
author
Emil Bartczak
<emilbart@gmail.com>
Wed, 7 Dec 2016 23:27:41 +0000
(
00:27
+0100)
committer
Alexandre Belloni
<alexandre.belloni@free-electrons.com>
Sun, 18 Dec 2016 23:59:24 +0000
(
00:59
+0100)
This patch doesn't change the code but replaces all bitmask values
with the BIT(x) macro.
Signed-off-by: Emil Bartczak <emilbart@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-mcp795.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-mcp795.c
b/drivers/rtc/rtc-mcp795.c
index 89b0ffa83064ee7ea096df4e712f169a2d39855c..8ed55f6ff8ba88f8017db31e6cbef6057d5004ed 100644
(file)
--- a/
drivers/rtc/rtc-mcp795.c
+++ b/
drivers/rtc/rtc-mcp795.c
@@
-45,8
+45,8
@@
#define MCP795_REG_MONTH 0x06
#define MCP795_REG_CONTROL 0x08
-#define MCP795_ST_BIT
0x80
-#define MCP795_24_BIT
0x40
+#define MCP795_ST_BIT
BIT(7)
+#define MCP795_24_BIT
BIT(6)
#define MCP795_LP_BIT BIT(5)
#define MCP795_EXTOSC_BIT BIT(3)
#define MCP795_OSCON_BIT BIT(5)