rtc: s5m: Add separate field for storing auto-cleared mask in register config
commit67a6025a77be7c6bcb4baeb9424509fcb4ca1e32
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Wed, 30 Dec 2015 04:47:26 +0000 (30 13:47 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 11 Jan 2016 19:21:45 +0000 (11 20:21 +0100)
treee3071dfc204f422ddecdda083c3aaeb097566fc2
parenta83a793ad433d24f67aba4d88169235379004235
rtc: s5m: Add separate field for storing auto-cleared mask in register config

Some devices from S2M/S5M family use different register update masks for
different operations (alarm and register update). Now the driver uses
common register configuration and a lot of exceptions per device in code.

Before eliminating the exceptions and using specific register
configuration for given device, make the auto-cleared mask a separate
field. This is merely a refactoring.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-s5m.c