diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2019-05-25 11:12:55 +0200 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-06-01 23:13:10 +0200 |
commit | 42ca37ca476249ef01186a7c69a6b6c860e72c29 (patch) | |
tree | aa0b7e6205e6e85d38a830549796ada17f0a6a59 /drivers/rtc | |
parent | 9c3f0795e42513bff1cc1ab55a893d1c3dbf60b4 (diff) | |
download | linux-42ca37ca476249ef01186a7c69a6b6c860e72c29.tar.gz linux-42ca37ca476249ef01186a7c69a6b6c860e72c29.tar.bz2 linux-42ca37ca476249ef01186a7c69a6b6c860e72c29.zip |
rtc: tps65910: fix typo in register name in read_alarm()
Fix an obvious typo: in read_alarm() call we should read alarm setting
(starting at ALARM_SECONDS register) and not current time.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-tps65910.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-tps65910.c b/drivers/rtc/rtc-tps65910.c index a9bbd022aeef..cba70509fd92 100644 --- a/drivers/rtc/rtc-tps65910.c +++ b/drivers/rtc/rtc-tps65910.c @@ -147,7 +147,7 @@ static int tps65910_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alm) struct tps65910 *tps = dev_get_drvdata(dev->parent); int ret; - ret = regmap_bulk_read(tps->regmap, TPS65910_SECONDS, alarm_data, + ret = regmap_bulk_read(tps->regmap, TPS65910_ALARM_SECONDS, alarm_data, NUM_TIME_REGS); if (ret < 0) { dev_err(dev, "rtc_read_alarm error %d\n", ret); |