aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Reid <preid@electromag.com.au>2017-02-16 20:44:56 -0500
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-02-21 15:33:58 -0500
commitca4b0a6de8a8ed9834942a5ba0c6a7cd80877320 (patch)
tree6e48a83e9afcf67972f363076d260bad05d84164
parent0500ce589aa7b5325af161d3c992ffb6be138ff9 (diff)
rtc: ds3232: Cleanup whitespace around register and bit definitions.
Whitespace was a combination of spaces and tabs. Use spaces and align register / bit definitions. Signed-off-by: Phil Reid <preid@electromag.com.au> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--drivers/rtc/rtc-ds3232.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/drivers/rtc/rtc-ds3232.c b/drivers/rtc/rtc-ds3232.c
index b1f20d8c358f..67066f1da860 100644
--- a/drivers/rtc/rtc-ds3232.c
+++ b/drivers/rtc/rtc-ds3232.c
@@ -23,28 +23,28 @@
23#include <linux/slab.h> 23#include <linux/slab.h>
24#include <linux/regmap.h> 24#include <linux/regmap.h>
25 25
26#define DS3232_REG_SECONDS 0x00 26#define DS3232_REG_SECONDS 0x00
27#define DS3232_REG_MINUTES 0x01 27#define DS3232_REG_MINUTES 0x01
28#define DS3232_REG_HOURS 0x02 28#define DS3232_REG_HOURS 0x02
29#define DS3232_REG_AMPM 0x02 29#define DS3232_REG_AMPM 0x02
30#define DS3232_REG_DAY 0x03 30#define DS3232_REG_DAY 0x03
31#define DS3232_REG_DATE 0x04 31#define DS3232_REG_DATE 0x04
32#define DS3232_REG_MONTH 0x05 32#define DS3232_REG_MONTH 0x05
33#define DS3232_REG_CENTURY 0x05 33#define DS3232_REG_CENTURY 0x05
34#define DS3232_REG_YEAR 0x06 34#define DS3232_REG_YEAR 0x06
35#define DS3232_REG_ALARM1 0x07 /* Alarm 1 BASE */ 35#define DS3232_REG_ALARM1 0x07 /* Alarm 1 BASE */
36#define DS3232_REG_ALARM2 0x0B /* Alarm 2 BASE */ 36#define DS3232_REG_ALARM2 0x0B /* Alarm 2 BASE */
37#define DS3232_REG_CR 0x0E /* Control register */ 37#define DS3232_REG_CR 0x0E /* Control register */
38# define DS3232_REG_CR_nEOSC 0x80 38# define DS3232_REG_CR_nEOSC 0x80
39# define DS3232_REG_CR_INTCN 0x04 39# define DS3232_REG_CR_INTCN 0x04
40# define DS3232_REG_CR_A2IE 0x02 40# define DS3232_REG_CR_A2IE 0x02
41# define DS3232_REG_CR_A1IE 0x01 41# define DS3232_REG_CR_A1IE 0x01
42 42
43#define DS3232_REG_SR 0x0F /* control/status register */ 43#define DS3232_REG_SR 0x0F /* control/status register */
44# define DS3232_REG_SR_OSF 0x80 44# define DS3232_REG_SR_OSF 0x80
45# define DS3232_REG_SR_BSY 0x04 45# define DS3232_REG_SR_BSY 0x04
46# define DS3232_REG_SR_A2F 0x02 46# define DS3232_REG_SR_A2F 0x02
47# define DS3232_REG_SR_A1F 0x01 47# define DS3232_REG_SR_A1F 0x01
48 48
49struct ds3232 { 49struct ds3232 {
50 struct device *dev; 50 struct device *dev;