From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Daniel Romell <danielromell@gmail.com>
Cc: a.zummo@towertech.it, rtc-linux@googlegroups.com,
linux-kernel@vger.kernel.org, daro@hms.se, jao@hms.se,
mago@hms.se
Subject: [rtc-linux] Re: [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register.
Date: Thu, 11 Aug 2016 15:42:57 +0200 [thread overview]
Message-ID: <20160811134257.GH8132@piout.net> (raw)
In-Reply-To: <1470915104-10683-2-git-send-email-daro@hms.se>
On 11/08/2016 at 13:31:43 +0200, Daniel Romell wrote :
> From: Jan =C3=96stlund <jao@hms.se>
>=20
> The BQ32K_SECONDS_MASK and BQ32K_MINUTES_MASK both has the same
> value. This is no functional change.
>=20
> Signed-off-by: Daniel Romell <daro@hms.se>
Sorry, I saw it only before trying apply but both patches also need Jan's S=
oB.
> ---
> drivers/rtc/rtc-bq32k.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>=20
> 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, stru=
ct rtc_time *tm)
> return error;
> =20
> tm->tm_sec =3D bcd2bin(regs.seconds & BQ32K_SECONDS_MASK);
> - tm->tm_min =3D bcd2bin(regs.minutes & BQ32K_SECONDS_MASK);
> + tm->tm_min =3D bcd2bin(regs.minutes & BQ32K_MINUTES_MASK);
> tm->tm_hour =3D bcd2bin(regs.cent_hours & BQ32K_HOURS_MASK);
> tm->tm_mday =3D bcd2bin(regs.date);
> tm->tm_wday =3D bcd2bin(regs.day) - 1;
> --=20
> 2.7.4
>=20
--=20
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--=20
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---=20
You received this message because you are subscribed to the Google Groups "=
rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
WARNING: multiple messages have this Message-ID (diff)
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Daniel Romell <danielromell@gmail.com>
Cc: a.zummo@towertech.it, rtc-linux@googlegroups.com,
linux-kernel@vger.kernel.org, daro@hms.se, jao@hms.se,
mago@hms.se
Subject: Re: [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register.
Date: Thu, 11 Aug 2016 15:42:57 +0200 [thread overview]
Message-ID: <20160811134257.GH8132@piout.net> (raw)
In-Reply-To: <1470915104-10683-2-git-send-email-daro@hms.se>
On 11/08/2016 at 13:31:43 +0200, Daniel Romell wrote :
> 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>
Sorry, I saw it only before trying apply but both patches also need Jan's SoB.
> ---
> 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
>
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-08-11 13:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-11 9:59 [rtc-linux] [PATCH 0/2] bq32000 fixes Daniel Romell
2016-08-11 9:59 ` Daniel Romell
2016-08-11 9:59 ` [rtc-linux] [PATCH 1/2] rtc: bq32k: Use correct mask name for 'minutes' register Daniel Romell
2016-08-11 9:59 ` Daniel Romell
2016-08-11 9:59 ` [rtc-linux] [PATCH 2/2] rtc: bq32k: Fix handling of oscillator failure flag Daniel Romell
2016-08-11 9:59 ` Daniel Romell
2016-08-11 10:15 ` [rtc-linux] " Alexandre Belloni
2016-08-11 10:15 ` Alexandre Belloni
2016-08-11 11:31 ` [rtc-linux] [PATCH v2 0/2] bq32000 fixes Daniel Romell
2016-08-11 11:31 ` Daniel Romell
2016-08-11 11:31 ` [rtc-linux] [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register Daniel Romell
2016-08-11 11:31 ` Daniel Romell
2016-08-11 13:42 ` Alexandre Belloni [this message]
2016-08-11 13:42 ` Alexandre Belloni
2016-08-11 14:56 ` [rtc-linux] " danielromell
2016-08-11 21:13 ` Alexandre Belloni
2016-08-15 7:10 ` [rtc-linux] " Jan Östlund
2016-08-15 7:10 ` Jan Östlund
2016-08-11 11:31 ` [rtc-linux] [PATCH v2 2/2] rtc: bq32k: Fix handling of oscillator failure flag Daniel Romell
2016-08-11 11:31 ` Daniel Romell
2016-08-15 7:10 ` [rtc-linux] " Jan Östlund
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=20160811134257.GH8132@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=a.zummo@towertech.it \
--cc=danielromell@gmail.com \
--cc=daro@hms.se \
--cc=jao@hms.se \
--cc=linux-kernel@vger.kernel.org \
--cc=mago@hms.se \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.