rtc: s3c: define s3c_rtc structure to remove global variables.
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 13 Oct 2014 22:52:28 +0000 (15:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 14 Oct 2014 00:18:17 +0000 (02:18 +0200)
commit19be09f51d36101e4dc1577eb73ff8397bedd0a3
treec276a76314358e8236ae637f75fffd151ac0df8c
parent473b86451276d6d342ecd26d5e503163c30ea974
rtc: s3c: define s3c_rtc structure to remove global variables.

Define s3c_rtc structure including necessary variables for S3C RTC device
instead of global variables.  This patch improves the readability by
removing global variables.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-s3c.c