]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rtc: s5m: support different register layout
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Thu, 22 May 2014 00:54:30 +0000 (10:54 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 10 Jun 2014 05:27:36 +0000 (15:27 +1000)
commit2c042b5fbfad935740aa01e48582c8f2d1414540
tree019c356e92c5a6e7dbdaa1804fd3430454ddbd7e
parent44d4a0cfa7e556b53748c206cd2351f18035b510
rtc: s5m: support different register layout

Prepare for adding support for S2MPS14 RTC device to the
rtc-s5m driver:

1. Add a map of registers used by the driver which differ between
   the chipsets (S5M876X and S2MPS14).

2. Move code of checking for alarm pending to separate function.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Sangbeom Kim <sbkim73@samsung.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-s5m.c