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)
commitbb72dbba83ebd519632abbe07d71a8df0466a902
tree5623b1ad4592d80906860d24a66a01261cc8ba0f
parent35c2daaf554b3e6bb4a3ff4438e801e57ae5a0a3
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