]> 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)
commit28a014b1255020d0acd00a9826913ee0699e2020
tree1e81c4b6350e4a59bb0d425530f1114e141c9c7a
parent5ed2861f89936b6113f71f2beb3f41cae53afc5e
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