rtc: ds1343: use regmap_update_bits for glitch filter
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:49:37 +0000 (22:49 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 19 Oct 2019 20:56:03 +0000 (22:56 +0200)
commitac08888b2590f690bed1f1afe7a39bdda76eb41f
tree92e339691ac81525de465afbc819fc1d051ec4d1
parent580daaf43afc7024d10d23021093e9e76181e338
rtc: ds1343: use regmap_update_bits for glitch filter

Use regmap_update_bits to update DS1343_CONTROL_REG in a race free manner
when setting the glitch filter.

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