From: "Anthony Drake" <agmotorsvc-H+0wwilmMs3R7s880joybQ@public.gmane.org>
To: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: rtc-ds3232 driver
Date: Thu, 1 Mar 2012 19:54:00 +0000 (UTC) [thread overview]
Message-ID: <61_2012_13540_GON@news.gmane.org> (raw)
In-Reply-To: 20120301191200.GB2538@pengutronix.de
On Thu, 1 Mar 2012 20:12:00 +0100,
Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> wrote
>
> Documentation/rtc.txt
>
> --=20
Thank you. I am familiar with the /dev/rtc0 character device special
file interface, and can access it well. My problem is that there is no
device special file created for rtc-ds3232 module. I know how to mknod
a character device, but I do not know the major/minor number for
rtc-ds3232.ko, it does not appear in /proc/devices. I do have
/dev/i2c-1, 2, & 3 in my system.
I think I just do not know how to access i2c driver services, one that
is added in the following way, from rtc-ds3232.c:
static int __init ds3232_init(void)
{
printk("adding ds3232 driver: %s\n", ds3232_driver.driver.name);
return i2c_add_driver(&ds3232_driver);
}
ds3232_driver defined:
static struct i2c_driver ds3232_driver = {
.driver = {
.name = "rtc-ds3232",
.owner = THIS_MODULE,
},
.probe = ds3232_probe,
.remove = __devexit_p(ds3232_remove),
.id_table = ds3232_id,
};
next prev parent reply other threads:[~2012-03-01 19:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-01 17:09 rtc-ds3232 driver Anthony Drake
[not found] ` <61_2012_11913_GON-2AO0Uh8ossnZ+VzJOa5vwg@public.gmane.org>
2012-03-01 19:12 ` Wolfram Sang
2012-03-01 19:54 ` Anthony Drake [this message]
[not found] ` <61_2012_13540_GON-2AO0Uh8ossnZ+VzJOa5vwg@public.gmane.org>
2012-03-01 20:34 ` Jean Delvare
2012-03-02 17:27 ` Anthony Drake
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=61_2012_13540_GON@news.gmane.org \
--to=agmotorsvc-h+0wwilmms3r7s880joybq@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox