From: "Jan Östlund" <jao@hms.se>
To: Daniel Romell <danielromell@gmail.com>,
"a.zummo@towertech.it" <a.zummo@towertech.it>
Cc: "alexandre.belloni@free-electrons.com"
<alexandre.belloni@free-electrons.com>,
"rtc-linux@googlegroups.com" <rtc-linux@googlegroups.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Daniel Romell <Daro@hms.se>, Magnus Olsson <Mago@hms.se>
Subject: RE: [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register.
Date: Mon, 15 Aug 2016 07:10:27 +0000 [thread overview]
Message-ID: <DB4PR06MB2537EC6DC587FBA458D09FAD0120@DB4PR06MB253.eurprd06.prod.outlook.com> (raw)
In-Reply-To: <1470915104-10683-2-git-send-email-daro@hms.se>
Signed-off-by: Jan Östlund <jao@hms.se>
-----Original Message-----
From: Daniel Romell [mailto:danielromell@gmail.com]
Sent: den 11 augusti 2016 13:32
To: a.zummo@towertech.it
Cc: alexandre.belloni@free-electrons.com; rtc-linux@googlegroups.com; linux-kernel@vger.kernel.org; Daniel Romell <Daro@hms.se>; Jan Östlund <jao@hms.se>; Magnus Olsson <Mago@hms.se>
Subject: [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register.
From: Jan Östlund <jao@hms.se>
The BQ32K_SECONDS_MASK and BQ32K_MINUTES_MASK both has the same
value. This is no functional change.
Signed-off-by: Daniel Romell <daro@hms.se>
---
drivers/rtc/rtc-bq32k.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c
index 0299988..5a0c137 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;
--
2.7.4
next prev parent reply other threads:[~2016-08-15 7:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 9:59 [PATCH 0/2] bq32000 fixes Daniel Romell
2016-08-11 9:59 ` [PATCH 1/2] rtc: bq32k: Use correct mask name for 'minutes' register Daniel Romell
2016-08-11 9:59 ` [PATCH 2/2] rtc: bq32k: Fix handling of oscillator failure flag Daniel Romell
2016-08-11 10:15 ` Alexandre Belloni
2016-08-11 11:31 ` [PATCH v2 0/2] bq32000 fixes Daniel Romell
2016-08-11 11:31 ` [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register Daniel Romell
2016-08-11 13:42 ` Alexandre Belloni
[not found] ` <5b6636b7-ff29-458b-b566-4b97e401b794@googlegroups.com>
2016-08-11 21:13 ` [rtc-linux] " Alexandre Belloni
2016-08-15 7:10 ` Jan Östlund [this message]
2016-08-11 11:31 ` [PATCH v2 2/2] rtc: bq32k: Fix handling of oscillator failure flag Daniel Romell
2016-08-15 7:10 ` Jan Östlund
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DB4PR06MB2537EC6DC587FBA458D09FAD0120@DB4PR06MB253.eurprd06.prod.outlook.com \
--to=jao@hms.se \
--cc=Daro@hms.se \
--cc=Mago@hms.se \
--cc=a.zummo@towertech.it \
--cc=alexandre.belloni@free-electrons.com \
--cc=danielromell@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®