From: j.neuschaefer@gmx.net (Jonathan Neuschäfer)
To: kernelnewbies@lists.kernelnewbies.org
Subject: rtc_ops structure
Date: Sun, 15 May 2011 01:30:36 +0200 [thread overview]
Message-ID: <20110514233036.GC1222@debian.debian> (raw)
In-Reply-To: <BANLkTikz_NUBNrcMDKfB52A-AqJ+35Aavg@mail.gmail.com>
On Fri, May 13, 2011 at 11:46:16AM -0600, Jim Cromie wrote:
> On Wed, May 11, 2011 at 11:08 AM, Vikram Narayanan <vikram186@gmail.com> wrote:
> > Hi,
> >
> > Is the structure rtc_ops still used in rtc drivers in the new kernels?
> > If not, what is the equivalent of it?
> >
>
> [jimc at groucho linux-2.6.git]$ grep -r rtc_ops drivers/ |wc
> 159 842 11646
>
> heres one of them:
>
> drivers/rtc/rtc-cmos.c:static const struct rtc_class_ops cmos_rtc_ops = {
> drivers/rtc/rtc-cmos.c: &cmos_rtc_ops, THIS_MODULE);
>
> So Id say "yes"
That's rtc_class_ops.
Searching for the exact word "rtc_ops" avoids these false positives:
$ grep -r "\<rtc_ops\>" drivers/
$
rtc_class_ops (include/linux/rtc.h) seems to be that equivalent.
Hope this helps,
Jonathan Neusch?fer
prev parent reply other threads:[~2011-05-14 23:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-11 17:08 rtc_ops structure Vikram Narayanan
2011-05-13 17:46 ` Jim Cromie
2011-05-14 23:30 ` Jonathan Neuschäfer [this message]
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=20110514233036.GC1222@debian.debian \
--to=j.neuschaefer@gmx.net \
--cc=kernelnewbies@lists.kernelnewbies.org \
/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.