diff --git a/Linux/KernelDriver/3.2/Char/demo_char.c b/Linux/KernelDriver/3.2/Char/demo_char.c index 62d3413..16828e9 100644 --- a/Linux/KernelDriver/3.2/Char/demo_char.c +++ b/Linux/KernelDriver/3.2/Char/demo_char.c @@ -49,7 +49,7 @@ struct demo_dev struct class *class; struct demo_dev* demo_devp; -static int demo_open(struct inode *inode, struct file* filp) +static int demo_open(struct inode *inode, struct file *filp) { struct demo_dev *demo; demo = container_of(inode->i_cdev, struct demo_dev, cdev); @@ -58,7 +58,7 @@ static int demo_open(struct inode *inode, struct file* filp) return 0; } -static int demo_release(struct inode *inode, struct file* filp) +static int demo_release(struct inode *inode, struct file *filp) { return 0; } @@ -187,7 +187,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) return 0; } -static int demo_mmap(struct file* filp, struct vm_area_struct* vma) +static int demo_mmap(struct file *filp, struct vm_area_struct *vma) { struct demo_dev *devp = filp->private_data; (void)devp; diff --git a/Linux/KernelDriver/3.2/Misc/demo_misc.c b/Linux/KernelDriver/3.2/Misc/demo_misc.c index 1653155..8efb57a 100644 --- a/Linux/KernelDriver/3.2/Misc/demo_misc.c +++ b/Linux/KernelDriver/3.2/Misc/demo_misc.c @@ -45,12 +45,12 @@ MODULE_LICENSE("GPL"); #define DEMO_CTL_IOWR _IOWR(DEMO_MAGIC, 4, uint32_t) #define DEMO_CTL_MAX 5 -static int demo_open(struct inode *inode, struct file* filp) +static int demo_open(struct inode *inode, struct file *filp) { return 0; } -static int demo_release(struct inode *inode, struct file* filp) +static int demo_release(struct inode *inode, struct file *filp) { return 0; } @@ -128,7 +128,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) return 0; } -static int demo_mmap(struct file* filp, struct vm_area_struct* vma) +static int demo_mmap(struct file *filp, struct vm_area_struct *vma) { return 0; } diff --git a/Linux/KernelDriver/4.14/Platform/demo_platform.c b/Linux/KernelDriver/4.14/Platform/demo_platform.c index e16f5c9..205e2ec 100644 --- a/Linux/KernelDriver/4.14/Platform/demo_platform.c +++ b/Linux/KernelDriver/4.14/Platform/demo_platform.c @@ -59,13 +59,13 @@ struct mfis_iccom #define to_miccom(priv) container_of((priv), struct mfis_iccom, mis) -static int miccom_open(struct inode *inode, struct file* filp) +static int miccom_open(struct inode *inode, struct file *filp) { struct mfis_iccom *miccom = to_miccom(filp->private_data); return 0; } -static int miccom_release(struct inode *inode, struct file* filp) +static int miccom_release(struct inode *inode, struct file *filp) { return 0; } @@ -106,7 +106,7 @@ static struct file_operations miccom_fops = { .unlocked_ioctl = miccom_ioctl, }; -static void miccom_enable_irq(struct mfis_iccom* miccom) +static void miccom_enable_irq(struct mfis_iccom *miccom) { int i; @@ -115,7 +115,7 @@ static void miccom_enable_irq(struct mfis_iccom* miccom) } } -static void miccom_disable_irq_nosync(struct mfis_iccom* miccom) +static void miccom_disable_irq_nosync(struct mfis_iccom *miccom) { int i; @@ -124,7 +124,7 @@ static void miccom_disable_irq_nosync(struct mfis_iccom* miccom) } } -static int miccom_remap_cta(struct device *dev, struct device_node *node, struct mfis_iccom* miccom) +static int miccom_remap_cta(struct device *dev, struct device_node *node, struct mfis_iccom *miccom) { int32_t len; int i = 0; diff --git a/Linux/KernelDriver/4.19/Char/demo_char.c b/Linux/KernelDriver/4.19/Char/demo_char.c index 62d3413..16828e9 100644 --- a/Linux/KernelDriver/4.19/Char/demo_char.c +++ b/Linux/KernelDriver/4.19/Char/demo_char.c @@ -49,7 +49,7 @@ struct demo_dev struct class *class; struct demo_dev* demo_devp; -static int demo_open(struct inode *inode, struct file* filp) +static int demo_open(struct inode *inode, struct file *filp) { struct demo_dev *demo; demo = container_of(inode->i_cdev, struct demo_dev, cdev); @@ -58,7 +58,7 @@ static int demo_open(struct inode *inode, struct file* filp) return 0; } -static int demo_release(struct inode *inode, struct file* filp) +static int demo_release(struct inode *inode, struct file *filp) { return 0; } @@ -187,7 +187,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) return 0; } -static int demo_mmap(struct file* filp, struct vm_area_struct* vma) +static int demo_mmap(struct file *filp, struct vm_area_struct *vma) { struct demo_dev *devp = filp->private_data; (void)devp; diff --git a/Linux/KernelDriver/4.19/Misc/demo_misc.c b/Linux/KernelDriver/4.19/Misc/demo_misc.c index 1653155..8efb57a 100644 --- a/Linux/KernelDriver/4.19/Misc/demo_misc.c +++ b/Linux/KernelDriver/4.19/Misc/demo_misc.c @@ -45,12 +45,12 @@ MODULE_LICENSE("GPL"); #define DEMO_CTL_IOWR _IOWR(DEMO_MAGIC, 4, uint32_t) #define DEMO_CTL_MAX 5 -static int demo_open(struct inode *inode, struct file* filp) +static int demo_open(struct inode *inode, struct file *filp) { return 0; } -static int demo_release(struct inode *inode, struct file* filp) +static int demo_release(struct inode *inode, struct file *filp) { return 0; } @@ -128,7 +128,7 @@ static long demo_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) return 0; } -static int demo_mmap(struct file* filp, struct vm_area_struct* vma) +static int demo_mmap(struct file *filp, struct vm_area_struct *vma) { return 0; }