character_device_create

This commit is contained in:
Ciro Santilli
2017-08-06 12:21:05 +01:00
parent b2459d07f5
commit dab04d1852
6 changed files with 84 additions and 22 deletions

View File

@@ -25,7 +25,7 @@ static int show(struct seq_file *m, void *v)
return 0;
}
static int open(struct inode *inode, struct file *file)
static int open(struct inode *inode, struct file *file)
{
return single_open(file, show, NULL);
}