From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Belloni Subject: Re: [PATCH 2/4] rtc: ds1302: fix write value for day of week register Date: Sun, 10 Apr 2016 17:17:45 +0200 Message-ID: <20160410151745.GF5377@piout.net> References: <1460300366-25248-1-git-send-email-akinobu.mita@gmail.com> <1460300366-25248-3-git-send-email-akinobu.mita@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1460300366-25248-3-git-send-email-akinobu.mita-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Akinobu Mita Cc: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Sergey Yanovich , Alessandro Zummo List-Id: devicetree@vger.kernel.org On 10/04/2016 at 23:59:24 +0900, Akinobu Mita wrote : > The valid range of day of week register for DS1302 is 1 to 7. But the > set_time callback for rtc-ds1302 attempts to write the value of > tm->tm_wday which is in the range 0 to 6. While the get_time callback > correctly decodes the register. > > Signed-off-by: Akinobu Mita > Cc: Sergey Yanovich > Cc: Alessandro Zummo > Cc: Alexandre Belloni > --- > drivers/rtc/rtc-ds1302.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html