Skip to content

Commit

Permalink
rtc: mcp795: Prefer using the BIT() macro.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Emil Bartczak authored and Alexandre Belloni committed Dec 18, 2016
1 parent 43d0b10 commit a2b4299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/rtc/rtc-mcp795.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a2b4299

Please sign in to comment.