]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: ds1343: use burst write to set time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:49:35 +0000 (22:49 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:56:00 +0000 (22:56 +0200)
commit9364ac1d1479e38cfe96a4ed8069a393297b9451
treea24eda7d4ec0e0c38466468676e830e7b30defb6
parent448a0c70adc0bed1a3132fd4913919fb00e483fb
rtc: ds1343: use burst write to set time

To avoid possible race condition, use regmap_bulk_write to write all the
date/time registers at once instead of sequentially.

Link: https://lore.kernel.org/r/20191019204941.6203-3-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds1343.c