rtc: ds1347: use regmap_update_bits
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:47:23 +0000 (15:47 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 7 Oct 2019 13:49:36 +0000 (15:49 +0200)
commit860c45b56d9367f220f6ff786588ccd2d6c44065
treeaca96b9efaf9c593dff3dd5c624d4a1b5202e2e1
parentd9dcfa5f7084a0c648d9f0946994f4320a411a40
rtc: ds1347: use regmap_update_bits

Use regmap_update_bits instead of open coding. Also add proper error
handling.

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