Return-Path: Sender: rtc-linux@googlegroups.com Date: Thu, 11 Aug 2016 07:56:03 -0700 (PDT) From: danielromell@gmail.com To: rtc-linux Cc: danielromell@gmail.com, a.zummo@towertech.it, linux-kernel@vger.kernel.org, daro@hms.se, jao@hms.se, mago@hms.se Message-Id: <5b6636b7-ff29-458b-b566-4b97e401b794@googlegroups.com> In-Reply-To: <20160811134257.GH8132@piout.net> References: <1470909555-9226-1-git-send-email-daro@hms.se> <1470915104-10683-2-git-send-email-daro@hms.se> <20160811134257.GH8132@piout.net> Subject: [rtc-linux] Re: [PATCH v2 1/2] rtc: bq32k: Use correct mask name for 'minutes' register. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_752_1398190889.1470927363702" Reply-To: rtc-linux@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , ------=_Part_752_1398190889.1470927363702 Content-Type: multipart/alternative; boundary="----=_Part_753_619770547.1470927363702" ------=_Part_753_619770547.1470927363702 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Den torsdag 11 augusti 2016 kl. 15:42:58 UTC+2 skrev alexandre.belloni: > > On 11/08/2016 at 13:31:43 +0200, Daniel Romell wrote :=20 > > From: Jan =C3=96stlund >=20 > >=20 > > The BQ32K_SECONDS_MASK and BQ32K_MINUTES_MASK both has the same=20 > > value. This is no functional change.=20 > >=20 > > Signed-off-by: Daniel Romell >=20 > > Sorry, I saw it only before trying apply but both patches also need Jan's= =20 > SoB.=20 > Ah, sorry, my bad. I'll ask him to add that.=20 Is it ok if he just reply to the emails with his SoB line, or do you need a= =20 new patch set? =20 > > > ---=20 > > drivers/rtc/rtc-bq32k.c | 2 +-=20 > > 1 file changed, 1 insertion(+), 1 deletion(-)=20 > >=20 > > diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c=20 > > index 0299988..5a0c137 100644=20 > > --- a/drivers/rtc/rtc-bq32k.c=20 > > +++ b/drivers/rtc/rtc-bq32k.c=20 > > @@ -94,7 +94,7 @@ static int bq32k_rtc_read_time(struct device *dev,=20 > struct rtc_time *tm)=20 > > return error;=20 > > =20 > > tm->tm_sec =3D bcd2bin(regs.seconds & BQ32K_SECONDS_MASK);=20 > > - tm->tm_min =3D bcd2bin(regs.minutes & BQ32K_SECONDS_MASK);=20 > > + tm->tm_min =3D bcd2bin(regs.minutes & BQ32K_MINUTES_MASK);=20 > > tm->tm_hour =3D bcd2bin(regs.cent_hours & BQ32K_HOURS_MASK);= =20 > > tm->tm_mday =3D bcd2bin(regs.date);=20 > > tm->tm_wday =3D bcd2bin(regs.day) - 1;=20 > > --=20 > > 2.7.4=20 > >=20 > > --=20 > Alexandre Belloni, Free Electrons=20 > Embedded Linux and Kernel engineering=20 > http://free-electrons.com=20 > --=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. ------=_Part_753_619770547.1470927363702 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Den torsdag 11 augusti 2016 kl. 15:42:58 UTC+2 skr= ev alexandre.belloni:
On 11/08/= 2016 at 13:31:43 +0200, Daniel Romell wrote :
> From: Jan =C3=96stlund <j...@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 <da...@hms.se>

Sorry, I saw it only before trying apply but both patches also need Jan= 's SoB.

Ah, sorry, my bad. I'll ask him to= add that.=C2=A0
Is it ok if he just reply to the emails with his= SoB line, or do you need a new patch set? =C2=A0

> ---
> =C2=A0drivers/rtc/rtc-bq32k.c | 2 +-
> =C2=A01 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 *de= v, struct rtc_time *tm)
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0return error;
> =C2=A0
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tm->tm_se= c =3D bcd2bin(regs.seconds & BQ32K_SECONDS_MASK);
> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tm->tm_min =3D= bcd2bin(regs.minutes & BQ32K_SECONDS_MASK);
> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tm->tm_min =3D= bcd2bin(regs.minutes & BQ32K_MINUTES_MASK);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tm->tm_ho= ur =3D bcd2bin(regs.cent_hours & BQ32K_HOURS_MASK);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tm->tm_md= ay =3D bcd2bin(regs.date);
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0tm->tm_wd= ay =3D bcd2bin(regs.day) - 1;
> --=20
> 2.7.4
>=20

--=20
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free= -electrons.com

--
You received this message because you are subscribed to "rtc-linux&quo= t;.
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.
---
You received this message because you are subscribed to the Google Groups &= quot;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 http= s://groups.google.com/d/optout.
------=_Part_753_619770547.1470927363702-- ------=_Part_752_1398190889.1470927363702--