Skip to content

Commit a7c71c0

Browse files
sudipm-mukherjeegregkh
authored andcommitted
ppdev: fix parenthesis alignment
checkpatch was complaining that the alignment was not matching with the open parenthesis. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 83e8060 commit a7c71c0

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

‎drivers/char/ppdev.c‎

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ static inline void pp_enable_irq(struct pp_struct *pp)
114114
}
115115

116116
static ssize_t pp_read(struct file *file, char __user *buf, size_t count,
117-
loff_t *ppos)
117+
loff_t *ppos)
118118
{
119119
unsigned int minor = iminor(file_inode(file));
120120
struct pp_struct *pp = file->private_data;
@@ -140,9 +140,9 @@ static ssize_t pp_read(struct file *file, char __user *buf, size_t count,
140140
mode = pport->ieee1284.mode & ~(IEEE1284_DEVICEID | IEEE1284_ADDR);
141141

142142
parport_set_timeout(pp->pdev,
143-
(file->f_flags & O_NONBLOCK) ?
144-
PARPORT_INACTIVITY_O_NONBLOCK :
145-
pp->default_inactivity);
143+
(file->f_flags & O_NONBLOCK) ?
144+
PARPORT_INACTIVITY_O_NONBLOCK :
145+
pp->default_inactivity);
146146

147147
while (bytes_read == 0) {
148148
ssize_t need = min_t(unsigned long, count, PP_BUFFER_SIZE);
@@ -192,7 +192,7 @@ static ssize_t pp_read(struct file *file, char __user *buf, size_t count,
192192
}
193193

194194
static ssize_t pp_write(struct file *file, const char __user *buf,
195-
size_t count, loff_t *ppos)
195+
size_t count, loff_t *ppos)
196196
{
197197
unsigned int minor = iminor(file_inode(file));
198198
struct pp_struct *pp = file->private_data;
@@ -216,9 +216,9 @@ static ssize_t pp_write(struct file *file, const char __user *buf,
216216
mode = pport->ieee1284.mode & ~(IEEE1284_DEVICEID | IEEE1284_ADDR);
217217

218218
parport_set_timeout(pp->pdev,
219-
(file->f_flags & O_NONBLOCK) ?
220-
PARPORT_INACTIVITY_O_NONBLOCK :
221-
pp->default_inactivity);
219+
(file->f_flags & O_NONBLOCK) ?
220+
PARPORT_INACTIVITY_O_NONBLOCK :
221+
pp->default_inactivity);
222222

223223
while (bytes_written < count) {
224224
ssize_t n = min_t(unsigned long, count - bytes_written, PP_BUFFER_SIZE);
@@ -301,7 +301,7 @@ static int register_device(int minor, struct pp_struct *pp)
301301

302302
fl = (pp->flags & PP_EXCL) ? PARPORT_FLAG_EXCL : 0;
303303
pdev = parport_register_device(port, name, NULL,
304-
NULL, pp_irq, fl, pp);
304+
NULL, pp_irq, fl, pp);
305305
parport_put_port(port);
306306

307307
if (!pdev) {
@@ -559,10 +559,10 @@ static int pp_do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
559559

560560
case PPFCONTROL:
561561
if (copy_from_user(&mask, argp,
562-
sizeof(mask)))
562+
sizeof(mask)))
563563
return -EFAULT;
564564
if (copy_from_user(&reg, 1 + (unsigned char __user *) arg,
565-
sizeof(reg)))
565+
sizeof(reg)))
566566
return -EFAULT;
567567
parport_frob_control(port, mask, reg);
568568
return 0;
@@ -665,7 +665,7 @@ static long pp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
665665

666666
#ifdef CONFIG_COMPAT
667667
static long pp_compat_ioctl(struct file *file, unsigned int cmd,
668-
unsigned long arg)
668+
unsigned long arg)
669669
{
670670
return pp_ioctl(file, cmd, (unsigned long)compat_ptr(arg));
671671
}
@@ -811,7 +811,7 @@ static int __init ppdev_init(void)
811811

812812
if (register_chrdev(PP_MAJOR, CHRDEV, &pp_fops)) {
813813
printk(KERN_WARNING CHRDEV ": unable to get major %d\n",
814-
PP_MAJOR);
814+
PP_MAJOR);
815815
return -EIO;
816816
}
817817
ppdev_class = class_create(THIS_MODULE, CHRDEV);

0 commit comments

Comments
 (0)