diff options
| author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-03-10 01:27:15 -0500 |
|---|---|---|
| committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-17 09:20:56 -0400 |
| commit | 4a681243cc2d2cea98c6b5e57224f3bcb08bce6c (patch) | |
| tree | 7de855d1abf06d1b4b48f3a47e408a0f45ae678a /drivers/rtc | |
| parent | fed9b18611f75110d5b26d650819665d528038da (diff) | |
rtc: s5m: Move enum from rtc.h to rtc-s5m.c
Move this enum to rtc-s5m.c once it is meaningless to others drivers [1].
[1] https://marc.info/?l=linux-rtc&m=152060068925948&w=2
Suggested-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
| -rw-r--r-- | drivers/rtc/rtc-s5m.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/rtc/rtc-s5m.c b/drivers/rtc/rtc-s5m.c index 6deae10c14ac..4c363deb79fd 100644 --- a/drivers/rtc/rtc-s5m.c +++ b/drivers/rtc/rtc-s5m.c | |||
| @@ -38,6 +38,17 @@ | |||
| 38 | */ | 38 | */ |
| 39 | #define UDR_READ_RETRY_CNT 5 | 39 | #define UDR_READ_RETRY_CNT 5 |
| 40 | 40 | ||
| 41 | enum { | ||
| 42 | RTC_SEC = 0, | ||
| 43 | RTC_MIN, | ||
| 44 | RTC_HOUR, | ||
| 45 | RTC_WEEKDAY, | ||
| 46 | RTC_DATE, | ||
| 47 | RTC_MONTH, | ||
| 48 | RTC_YEAR1, | ||
| 49 | RTC_YEAR2, | ||
| 50 | }; | ||
| 51 | |||
| 41 | /* | 52 | /* |
| 42 | * Registers used by the driver which are different between chipsets. | 53 | * Registers used by the driver which are different between chipsets. |
| 43 | * | 54 | * |
