diff options
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | 2016-02-12 08:03:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-14 20:43:50 -0500 |
commit | d85c1a2d1591e0eb04d0c77b61e1062af61a9156 (patch) | |
tree | 503cfa65e5fab336591aa6e02f017826640b25b4 /drivers | |
parent | 783ea44db7dbe60d0def22b8812b89940b7555b4 (diff) |
ppdev: remove whitespace around pointers
checkpatch was complaining about space around the pointer.
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/ppdev.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 80ab757de8d3..8a168c4d094c 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c | |||
@@ -75,7 +75,7 @@ | |||
75 | #define CHRDEV "ppdev" | 75 | #define CHRDEV "ppdev" |
76 | 76 | ||
77 | struct pp_struct { | 77 | struct pp_struct { |
78 | struct pardevice * pdev; | 78 | struct pardevice *pdev; |
79 | wait_queue_head_t irq_wait; | 79 | wait_queue_head_t irq_wait; |
80 | atomic_t irqc; | 80 | atomic_t irqc; |
81 | unsigned int flags; | 81 | unsigned int flags; |
@@ -112,12 +112,12 @@ static inline void pp_enable_irq(struct pp_struct *pp) | |||
112 | port->ops->enable_irq(port); | 112 | port->ops->enable_irq(port); |
113 | } | 113 | } |
114 | 114 | ||
115 | static ssize_t pp_read(struct file * file, char __user * buf, size_t count, | 115 | static ssize_t pp_read(struct file *file, char __user *buf, size_t count, |
116 | loff_t * ppos) | 116 | loff_t *ppos) |
117 | { | 117 | { |
118 | unsigned int minor = iminor(file_inode(file)); | 118 | unsigned int minor = iminor(file_inode(file)); |
119 | struct pp_struct *pp = file->private_data; | 119 | struct pp_struct *pp = file->private_data; |
120 | char * kbuffer; | 120 | char *kbuffer; |
121 | ssize_t bytes_read = 0; | 121 | ssize_t bytes_read = 0; |
122 | struct parport *pport; | 122 | struct parport *pport; |
123 | int mode; | 123 | int mode; |
@@ -194,12 +194,12 @@ static ssize_t pp_read(struct file * file, char __user * buf, size_t count, | |||
194 | return bytes_read; | 194 | return bytes_read; |
195 | } | 195 | } |
196 | 196 | ||
197 | static ssize_t pp_write(struct file * file, const char __user * buf, | 197 | static ssize_t pp_write(struct file *file, const char __user *buf, |
198 | size_t count, loff_t * ppos) | 198 | size_t count, loff_t *ppos) |
199 | { | 199 | { |
200 | unsigned int minor = iminor(file_inode(file)); | 200 | unsigned int minor = iminor(file_inode(file)); |
201 | struct pp_struct *pp = file->private_data; | 201 | struct pp_struct *pp = file->private_data; |
202 | char * kbuffer; | 202 | char *kbuffer; |
203 | ssize_t bytes_written = 0; | 203 | ssize_t bytes_written = 0; |
204 | ssize_t wrote; | 204 | ssize_t wrote; |
205 | int mode; | 205 | int mode; |
@@ -288,7 +288,7 @@ static void pp_irq(void *private) | |||
288 | static int register_device(int minor, struct pp_struct *pp) | 288 | static int register_device(int minor, struct pp_struct *pp) |
289 | { | 289 | { |
290 | struct parport *port; | 290 | struct parport *port; |
291 | struct pardevice * pdev = NULL; | 291 | struct pardevice *pdev = NULL; |
292 | char *name; | 292 | char *name; |
293 | int fl; | 293 | int fl; |
294 | 294 | ||
@@ -350,7 +350,7 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg) | |||
350 | { | 350 | { |
351 | unsigned int minor = iminor(file_inode(file)); | 351 | unsigned int minor = iminor(file_inode(file)); |
352 | struct pp_struct *pp = file->private_data; | 352 | struct pp_struct *pp = file->private_data; |
353 | struct parport * port; | 353 | struct parport *port; |
354 | void __user *argp = (void __user *)arg; | 354 | void __user *argp = (void __user *)arg; |
355 | 355 | ||
356 | /* First handle the cases that don't take arguments. */ | 356 | /* First handle the cases that don't take arguments. */ |
@@ -679,7 +679,7 @@ static long pp_compat_ioctl(struct file *file, unsigned int cmd, | |||
679 | } | 679 | } |
680 | #endif | 680 | #endif |
681 | 681 | ||
682 | static int pp_open(struct inode * inode, struct file * file) | 682 | static int pp_open(struct inode *inode, struct file *file) |
683 | { | 683 | { |
684 | unsigned int minor = iminor(inode); | 684 | unsigned int minor = iminor(inode); |
685 | struct pp_struct *pp; | 685 | struct pp_struct *pp; |
@@ -708,7 +708,7 @@ static int pp_open(struct inode * inode, struct file * file) | |||
708 | return 0; | 708 | return 0; |
709 | } | 709 | } |
710 | 710 | ||
711 | static int pp_release(struct inode * inode, struct file * file) | 711 | static int pp_release(struct inode *inode, struct file *file) |
712 | { | 712 | { |
713 | unsigned int minor = iminor(inode); | 713 | unsigned int minor = iminor(inode); |
714 | struct pp_struct *pp = file->private_data; | 714 | struct pp_struct *pp = file->private_data; |
@@ -767,7 +767,7 @@ static int pp_release(struct inode * inode, struct file * file) | |||
767 | } | 767 | } |
768 | 768 | ||
769 | /* No kernel lock held - fine */ | 769 | /* No kernel lock held - fine */ |
770 | static unsigned int pp_poll(struct file * file, poll_table * wait) | 770 | static unsigned int pp_poll(struct file *file, poll_table *wait) |
771 | { | 771 | { |
772 | struct pp_struct *pp = file->private_data; | 772 | struct pp_struct *pp = file->private_data; |
773 | unsigned int mask = 0; | 773 | unsigned int mask = 0; |