Commit fc1afe60 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Alexandre Belloni

rtc: s3c: Minor white-space cleanups

Minor cleanups to make the code easier to read. No functional changes.
1. Remove one space before labels as this is nowadays mostly preferred.
2. Fix indentation of arguments in function calls.
3. Split structure member declaration.
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 8768e7b3
...@@ -49,7 +49,8 @@ struct s3c_rtc { ...@@ -49,7 +49,8 @@ struct s3c_rtc {
spinlock_t pie_lock; spinlock_t pie_lock;
spinlock_t alarm_clk_lock; spinlock_t alarm_clk_lock;
int ticnt_save, ticnt_en_save; int ticnt_save;
int ticnt_en_save;
bool wake_en; bool wake_en;
}; };
...@@ -169,7 +170,7 @@ static int s3c_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) ...@@ -169,7 +170,7 @@ static int s3c_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm)
s3c_rtc_enable_clk(info); s3c_rtc_enable_clk(info);
retry_get_time: retry_get_time:
rtc_tm->tm_min = readb(info->base + S3C2410_RTCMIN); rtc_tm->tm_min = readb(info->base + S3C2410_RTCMIN);
rtc_tm->tm_hour = readb(info->base + S3C2410_RTCHOUR); rtc_tm->tm_hour = readb(info->base + S3C2410_RTCHOUR);
rtc_tm->tm_mday = readb(info->base + S3C2410_RTCDATE); rtc_tm->tm_mday = readb(info->base + S3C2410_RTCDATE);
...@@ -378,8 +379,7 @@ static void s3c24xx_rtc_enable(struct s3c_rtc *info) ...@@ -378,8 +379,7 @@ static void s3c24xx_rtc_enable(struct s3c_rtc *info)
dev_info(info->dev, "rtc disabled, re-enabling\n"); dev_info(info->dev, "rtc disabled, re-enabling\n");
tmp = readw(info->base + S3C2410_RTCCON); tmp = readw(info->base + S3C2410_RTCCON);
writew(tmp | S3C2410_RTCCON_RTCEN, writew(tmp | S3C2410_RTCCON_RTCEN, info->base + S3C2410_RTCCON);
info->base + S3C2410_RTCCON);
} }
if (con & S3C2410_RTCCON_CNTSEL) { if (con & S3C2410_RTCCON_CNTSEL) {
...@@ -568,7 +568,7 @@ static int s3c_rtc_probe(struct platform_device *pdev) ...@@ -568,7 +568,7 @@ static int s3c_rtc_probe(struct platform_device *pdev)
return 0; return 0;
err_nortc: err_nortc:
if (info->data->disable) if (info->data->disable)
info->data->disable(info); info->data->disable(info);
...@@ -747,8 +747,7 @@ static void s3c6410_rtc_restore_tick_cnt(struct s3c_rtc *info) ...@@ -747,8 +747,7 @@ static void s3c6410_rtc_restore_tick_cnt(struct s3c_rtc *info)
writel(info->ticnt_save, info->base + S3C2410_TICNT); writel(info->ticnt_save, info->base + S3C2410_TICNT);
if (info->ticnt_en_save) { if (info->ticnt_en_save) {
con = readw(info->base + S3C2410_RTCCON); con = readw(info->base + S3C2410_RTCCON);
writew(con | info->ticnt_en_save, writew(con | info->ticnt_en_save, info->base + S3C2410_RTCCON);
info->base + S3C2410_RTCCON);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment