Re: rtc-ds3232 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 1 Mar 2012 20:12:00 +0100,
Wolfram Sang <w.sang@xxxxxxxxxxxxxx> 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,
};


--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux