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)
commitf308b682028a34874a376da649f99e7531dea15c
treea24eda7d4ec0e0c38466468676e830e7b30defb6
parent8c9a88fae2ce50f1aef5a72273a5d46e4fa89603
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