]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: rv3029: get rid of rv3029_get_sr
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:10:12 +0000 (23:10 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:56 +0000 (10:37 +0100)
commit2df60718d006847b90ae6e59d3edb6265bc738eb
tree5623b1ad4592d80906860d24a66a01261cc8ba0f
parent0f451c92fe665fd77508b446930f4db6f33832b5
rtc: rv3029: get rid of rv3029_get_sr

There is no point in having 2 indirections before calling regmap_read,
especially since rv3029_get_sr also changes the return value without any
good reason. Call regmap_read directly.

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