diff options
| author | Emil Bartczak <emilbart@gmail.com> | 2016-12-07 18:27:41 -0500 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2016-12-18 18:59:24 -0500 |
| commit | a2b42997513401903341cf96616839ad22f151b6 (patch) | |
| tree | ab88ba0efc82b2a452560a366f349ce5f45e7dfc | |
| parent | 43d0b10f60c54667108729adb525bc1090d4238f (diff) | |
rtc: mcp795: Prefer using the BIT() macro.
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>
| -rw-r--r-- | drivers/rtc/rtc-mcp795.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp795.c index 89b0ffa83064..8ed55f6ff8ba 100644 --- a/drivers/rtc/rtc-mcp795.c +++ b/drivers/rtc/rtc-mcp795.c | |||
| @@ -45,8 +45,8 @@ | |||
| 45 | #define MCP795_REG_MONTH 0x06 | 45 | #define MCP795_REG_MONTH 0x06 |
| 46 | #define MCP795_REG_CONTROL 0x08 | 46 | #define MCP795_REG_CONTROL 0x08 |
| 47 | 47 | ||
| 48 | #define MCP795_ST_BIT 0x80 | 48 | #define MCP795_ST_BIT BIT(7) |
| 49 | #define MCP795_24_BIT 0x40 | 49 | #define MCP795_24_BIT BIT(6) |
| 50 | #define MCP795_LP_BIT BIT(5) | 50 | #define MCP795_LP_BIT BIT(5) |
| 51 | #define MCP795_EXTOSC_BIT BIT(3) | 51 | #define MCP795_EXTOSC_BIT BIT(3) |
| 52 | #define MCP795_OSCON_BIT BIT(5) | 52 | #define MCP795_OSCON_BIT BIT(5) |
