补充注释; 修正格式问题.

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2019-10-15 14:43:14 +08:00
parent 59447433dd
commit 36d57cd73e
1 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,13 @@
/**
* @file demo_misc.c
* @author your name (you@domain.com)
* @brief
* @version 0.1
* @date 2019-10-15
*
* @copyright Copyright (c) 2019
*
*/
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
@ -52,9 +62,9 @@ static struct file_operations demo_fops = {
};
static struct miscdevice demo_dev = {
.minor = MISC_DYNAMIC_MINOR, // Dynamically allocate minor.
.name = "demo_misc",
.fops = &demo_fops,
.minor = MISC_DYNAMIC_MINOR, // Dynamically allocate minor.
.name = "demo_misc",
.fops = &demo_fops,
};
static int __init demo_init(void)