]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4ac8c9ed9f099fedf371fbf4fe678414cc5a4e4f
treeaca96b9efaf9c593dff3dd5c624d4a1b5202e2e1
parent809309547074b5b84b04d94699cbf3b1bf18ab58
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