diff options
| -rw-r--r-- | drivers/rtc/rtc-mcp795.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/rtc/rtc-mcp795.c b/drivers/rtc/rtc-mcp795.c index 8ed55f6ff8ba..ce75e421ba00 100644 --- a/drivers/rtc/rtc-mcp795.c +++ b/drivers/rtc/rtc-mcp795.c | |||
| @@ -12,7 +12,7 @@ | |||
| 12 | * it under the terms of the GNU General Public License version 2 as | 12 | * it under the terms of the GNU General Public License version 2 as |
| 13 | * published by the Free Software Foundation. | 13 | * published by the Free Software Foundation. |
| 14 | * | 14 | * |
| 15 | * */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include <linux/module.h> | 17 | #include <linux/module.h> |
| 18 | #include <linux/kernel.h> | 18 | #include <linux/kernel.h> |
| @@ -31,7 +31,7 @@ | |||
| 31 | #define MCP795_EEWREN 0x06 | 31 | #define MCP795_EEWREN 0x06 |
| 32 | #define MCP795_SRREAD 0x05 | 32 | #define MCP795_SRREAD 0x05 |
| 33 | #define MCP795_SRWRITE 0x01 | 33 | #define MCP795_SRWRITE 0x01 |
| 34 | #define MCP795_READ 0x13 | 34 | #define MCP795_READ 0x13 |
| 35 | #define MCP795_WRITE 0x12 | 35 | #define MCP795_WRITE 0x12 |
| 36 | #define MCP795_UNLOCK 0x14 | 36 | #define MCP795_UNLOCK 0x14 |
| 37 | #define MCP795_IDWRITE 0x32 | 37 | #define MCP795_IDWRITE 0x32 |
| @@ -45,9 +45,9 @@ | |||
| 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 BIT(7) | 48 | #define MCP795_ST_BIT BIT(7) |
| 49 | #define MCP795_24_BIT BIT(6) | 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) |
| 53 | 53 | ||
| @@ -253,7 +253,7 @@ static int mcp795_probe(struct spi_device *spi) | |||
| 253 | mcp795_rtcc_set_bits(&spi->dev, 0x03, MCP795_24_BIT, 0); | 253 | mcp795_rtcc_set_bits(&spi->dev, 0x03, MCP795_24_BIT, 0); |
| 254 | 254 | ||
| 255 | rtc = devm_rtc_device_register(&spi->dev, "rtc-mcp795", | 255 | rtc = devm_rtc_device_register(&spi->dev, "rtc-mcp795", |
| 256 | &mcp795_rtc_ops, THIS_MODULE); | 256 | &mcp795_rtc_ops, THIS_MODULE); |
| 257 | if (IS_ERR(rtc)) | 257 | if (IS_ERR(rtc)) |
| 258 | return PTR_ERR(rtc); | 258 | return PTR_ERR(rtc); |
| 259 | 259 | ||
