rtc_ops structure
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
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@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"
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@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
participants (3)
-
Jim Cromie -
Jonathan Neuschäfer -
Vikram Narayanan