* rtc_ops structure
@ 2011-05-11 17:08 Vikram Narayanan
2011-05-13 17:46 ` Jim Cromie
0 siblings, 1 reply; 3+ messages in thread
From: Vikram Narayanan @ 2011-05-11 17:08 UTC (permalink / raw)
To: kernelnewbies
Hi,
Is the structure rtc_ops still used in rtc drivers in the new kernels?
If not, what is the equivalent of it?
Thanks,
Vikram
^ permalink raw reply [flat|nested] 3+ messages in thread
* rtc_ops structure
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
0 siblings, 1 reply; 3+ messages in thread
From: Jim Cromie @ 2011-05-13 17:46 UTC (permalink / raw)
To: kernelnewbies
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"
^ permalink raw reply [flat|nested] 3+ messages in thread* rtc_ops structure
2011-05-13 17:46 ` Jim Cromie
@ 2011-05-14 23:30 ` Jonathan Neuschäfer
0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Neuschäfer @ 2011-05-14 23:30 UTC (permalink / raw)
To: kernelnewbies
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-05-14 23:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).