summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorJan Östlund2016-08-11 13:31:43 +0200
committerAlexandre Belloni2016-08-31 18:21:35 +0200
commit6ed1a51e0b8a981ab0540117f0c47c1f11fca5fa (patch)
tree87bbc869894965f4831327f461961963d676bad4 /drivers/rtc
parentrtc: sysfs: fix a cast removing the const attribute (diff)
downloadkernel-qcow2-linux-6ed1a51e0b8a981ab0540117f0c47c1f11fca5fa.tar.gz
kernel-qcow2-linux-6ed1a51e0b8a981ab0540117f0c47c1f11fca5fa.tar.xz
kernel-qcow2-linux-6ed1a51e0b8a981ab0540117f0c47c1f11fca5fa.zip
rtc: bq32k: Use correct mask name for 'minutes' register.
The BQ32K_SECONDS_MASK and BQ32K_MINUTES_MASK both has the same value. This is no functional change. Signed-off-by: Jan Östlund <jao@hms.se> Signed-off-by: Daniel Romell <daro@hms.se> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-bq32k.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c
index 0299988b4f13..5a0c13761023 100644
--- a/drivers/rtc/rtc-bq32k.c
+++ b/drivers/rtc/rtc-bq32k.c
@@ -94,7 +94,7 @@ static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm)
return error;
tm->tm_sec = bcd2bin(regs.seconds & BQ32K_SECONDS_MASK);
- tm->tm_min = bcd2bin(regs.minutes & BQ32K_SECONDS_MASK);
+ tm->tm_min = bcd2bin(regs.minutes & BQ32K_MINUTES_MASK);
tm->tm_hour = bcd2bin(regs.cent_hours & BQ32K_HOURS_MASK);
tm->tm_mday = bcd2bin(regs.date);
tm->tm_wday = bcd2bin(regs.day) - 1;