]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: abx80x: Add utility function for writing configuration key
authorKevin P. Fleming <kevin+linux@km6g.us>
Mon, 15 Jun 2020 10:51:12 +0000 (06:51 -0400)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 13 Feb 2021 22:03:26 +0000 (23:03 +0100)
commit49dfc1f16b03a6abc17721d4600f7a0bf3d3e4ed
tree86170bef2777cba4d2d3e8e41c36fb824eaef94d
parent2843d565dd78fd9117b9a18567cf68ac37a5dd1e
rtc: abx80x: Add utility function for writing configuration key

Writing one of key two values into the configuration key register
is a common operation, so a utility function has been added to
provide consistent behavior and eliminate code duplication.

Signed-off-by: Kevin P. Fleming <kevin+linux@km6g.us>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
To: linux-rtc@vger.kernel.org
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200615105113.57770-2-kevin+linux@km6g.us
drivers/rtc/rtc-abx80x.c