]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd81371c3da775f8cd75d14541af2b5b2f839156a
tree1e81c4b6350e4a59bb0d425530f1114e141c9c7a
parent4a0a1efcabd1af607147eb42f3b17aecffb3197f
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