diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-07-03 18:06:04 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-03 19:07:48 -0400 |
commit | 675090fa84368d66f46acb521a3eff5a4318d9ff (patch) | |
tree | 6755ff10bb453951fe5a9ea826ad4c33f7ef8f5a | |
parent | 91b80e4c3887fc26aa6c2c398b45478a09fac561 (diff) |
drivers/rtc/rtc-rs5c313.c: fix spacing related issues
Fixes the following types of checkpatch issues:
WARNING: please, no space before tabs
ERROR: space prohibited after that open parenthesis '('
ERROR: space prohibited before that close parenthesis ')'
ERROR: need consistent spacing around '>>' (ctx:VxW)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/rtc/rtc-rs5c313.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/rtc/rtc-rs5c313.c b/drivers/rtc/rtc-rs5c313.c index b603cc41ea77..6af0f1f95f63 100644 --- a/drivers/rtc/rtc-rs5c313.c +++ b/drivers/rtc/rtc-rs5c313.c | |||
@@ -50,7 +50,7 @@ | |||
50 | #include <linux/io.h> | 50 | #include <linux/io.h> |
51 | 51 | ||
52 | #define DRV_NAME "rs5c313" | 52 | #define DRV_NAME "rs5c313" |
53 | #define DRV_VERSION "1.13" | 53 | #define DRV_VERSION "1.13" |
54 | 54 | ||
55 | #ifdef CONFIG_SH_LANDISK | 55 | #ifdef CONFIG_SH_LANDISK |
56 | /*****************************************************/ | 56 | /*****************************************************/ |
@@ -301,7 +301,7 @@ static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) | |||
301 | rs5c313_write_reg(RS5C313_ADDR_SEC10, (data >> 4)); | 301 | rs5c313_write_reg(RS5C313_ADDR_SEC10, (data >> 4)); |
302 | 302 | ||
303 | data = bin2bcd(tm->tm_min); | 303 | data = bin2bcd(tm->tm_min); |
304 | rs5c313_write_reg(RS5C313_ADDR_MIN, data ); | 304 | rs5c313_write_reg(RS5C313_ADDR_MIN, data); |
305 | rs5c313_write_reg(RS5C313_ADDR_MIN10, (data >> 4)); | 305 | rs5c313_write_reg(RS5C313_ADDR_MIN10, (data >> 4)); |
306 | 306 | ||
307 | data = bin2bcd(tm->tm_hour); | 307 | data = bin2bcd(tm->tm_hour); |
@@ -310,7 +310,7 @@ static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) | |||
310 | 310 | ||
311 | data = bin2bcd(tm->tm_mday); | 311 | data = bin2bcd(tm->tm_mday); |
312 | rs5c313_write_reg(RS5C313_ADDR_DAY, data); | 312 | rs5c313_write_reg(RS5C313_ADDR_DAY, data); |
313 | rs5c313_write_reg(RS5C313_ADDR_DAY10, (data>> 4)); | 313 | rs5c313_write_reg(RS5C313_ADDR_DAY10, (data >> 4)); |
314 | 314 | ||
315 | data = bin2bcd(tm->tm_mon + 1); | 315 | data = bin2bcd(tm->tm_mon + 1); |
316 | rs5c313_write_reg(RS5C313_ADDR_MON, data); | 316 | rs5c313_write_reg(RS5C313_ADDR_MON, data); |
@@ -349,9 +349,9 @@ static void rs5c313_check_xstp_bit(void) | |||
349 | } | 349 | } |
350 | 350 | ||
351 | memset(&tm, 0, sizeof(struct rtc_time)); | 351 | memset(&tm, 0, sizeof(struct rtc_time)); |
352 | tm.tm_mday = 1; | 352 | tm.tm_mday = 1; |
353 | tm.tm_mon = 1 - 1; | 353 | tm.tm_mon = 1 - 1; |
354 | tm.tm_year = 2000 - 1900; | 354 | tm.tm_year = 2000 - 1900; |
355 | 355 | ||
356 | rs5c313_rtc_set_time(NULL, &tm); | 356 | rs5c313_rtc_set_time(NULL, &tm); |
357 | pr_err("invalid value, resetting to 1 Jan 2000\n"); | 357 | pr_err("invalid value, resetting to 1 Jan 2000\n"); |
@@ -388,7 +388,7 @@ static struct platform_driver rs5c313_rtc_platform_driver = { | |||
388 | .name = DRV_NAME, | 388 | .name = DRV_NAME, |
389 | .owner = THIS_MODULE, | 389 | .owner = THIS_MODULE, |
390 | }, | 390 | }, |
391 | .probe = rs5c313_rtc_probe, | 391 | .probe = rs5c313_rtc_probe, |
392 | .remove = rs5c313_rtc_remove, | 392 | .remove = rs5c313_rtc_remove, |
393 | }; | 393 | }; |
394 | 394 | ||
@@ -408,7 +408,7 @@ static int __init rs5c313_rtc_init(void) | |||
408 | 408 | ||
409 | static void __exit rs5c313_rtc_exit(void) | 409 | static void __exit rs5c313_rtc_exit(void) |
410 | { | 410 | { |
411 | platform_driver_unregister( &rs5c313_rtc_platform_driver ); | 411 | platform_driver_unregister(&rs5c313_rtc_platform_driver); |
412 | } | 412 | } |
413 | 413 | ||
414 | module_init(rs5c313_rtc_init); | 414 | module_init(rs5c313_rtc_init); |