rtc: s3c: Extract read/write IO into separate functions
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 21 Oct 2021 20:22:55 +0000 (23:22 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 23 Oct 2021 21:57:23 +0000 (23:57 +0200)
commite4a1444e10cbda2892a4ea7325ef5efa47c75cfb
tree1e81c4b6350e4a59bb0d425530f1114e141c9c7a
parentdba28c37f23a09fc32dbc37463ddb2feb3886f98
rtc: s3c: Extract read/write IO into separate functions

Create dedicated functions for I/O operations and BCD conversion. It can
be useful to separate those from representation conversion and other
stuff found in RTC callbacks.

This patch does not introduce any functional changes, it's merely
refactoring change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211021202256.28517-3-semen.protsenko@linaro.org
drivers/rtc/rtc-s3c.c