From: Joe Perches <joe@perches.com>
To: RAGHAVENDRA GANIGA <ravi23ganiga@gmail.com>
Cc: a.zummo@towertech.it, linux-kernel@vger.kernel.org,
rtc-linux@googlegroups.com
Subject: Re: [PATCH] rtc: add support for maxim dallas rtc ds1347
Date: Thu, 20 Mar 2014 12:19:55 -0700 [thread overview]
Message-ID: <1395343195.7776.37.camel@joe-AO722> (raw)
In-Reply-To: <532B3AB9.5050809@gmail.com>
On Fri, 2014-03-21 at 00:30 +0530, RAGHAVENDRA GANIGA wrote:
> This is a patch to add support for
> maxim dallas rtc ds1347
[]
> diff --git a/drivers/rtc/rtc-ds1347.c b/drivers/rtc/rtc-ds1347.c
[]
> +static int ds1347_read_time(struct device *dev, struct rtc_time *dt)
> +{
[]
> + /* year in linux is from 1900 i.e in range of 100
> + in rtc it is from 00 to 99 so subtract
> + the linux year by 100 */
> + if (dt->tm_year >= 100)
> + dt->tm_year -= 100;
This depends on how long you want to live, but it could be
while (dt->tm_year >= 100)
next prev parent reply other threads:[~2014-03-20 19:20 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-20 19:00 RAGHAVENDRA GANIGA
2014-03-20 19:19 ` Joe Perches [this message]
2014-03-20 21:01 ` Alessandro Zummo
2014-03-20 21:08 ` Joe Perches
-- strict thread matches above, loose matches on Subject: below --
2014-03-21 14:35 RAGHAVENDRA GANIGA
2014-03-20 16:25 RAGHAVENDRA GANIGA
2014-03-20 18:22 ` Alessandro Zummo
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=1395343195.7776.37.camel@joe-AO722 \
--to=joe@perches.com \
--cc=a.zummo@towertech.it \
--cc=linux-kernel@vger.kernel.org \
--cc=ravi23ganiga@gmail.com \
--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®