--- a/master/cdev.c Fri Jul 04 12:05:21 2008 +0000
+++ b/master/cdev.c Fri Jul 04 12:06:10 2008 +0000
@@ -1195,6 +1195,8 @@
* File operations
*****************************************************************************/
+/** Called when the cdev is opened.
+ */
int eccdev_open(struct inode *inode, struct file *filp)
{
ec_cdev_t *cdev = container_of(inode->i_cdev, ec_cdev_t, cdev);
@@ -1208,6 +1210,8 @@
/*****************************************************************************/
+/** Called when the cdev is closed.
+ */
int eccdev_release(struct inode *inode, struct file *filp)
{
ec_cdev_t *cdev = (ec_cdev_t *) filp->private_data;
@@ -1220,6 +1224,8 @@
/*****************************************************************************/
+/** Called when an ioctl() command is issued.
+ */
long eccdev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
ec_cdev_t *cdev = (ec_cdev_t *) filp->private_data;