char: lp: remove trailing whitespace

Fix checkpatch error for trailing whitespace.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sudip Mukherjee 2018-11-25 19:47:32 +00:00 committed by Greg Kroah-Hartman
parent 55949c7e75
commit 69f92163f4
1 changed files with 15 additions and 15 deletions

View File

@ -46,8 +46,8 @@
* lp=auto (assign lp devices to all ports that * lp=auto (assign lp devices to all ports that
* have printers attached, as determined * have printers attached, as determined
* by the IEEE-1284 autoprobe) * by the IEEE-1284 autoprobe)
* *
* lp=reset (reset the printer during * lp=reset (reset the printer during
* initialisation) * initialisation)
* *
* lp=off (disable the printer driver entirely) * lp=off (disable the printer driver entirely)
@ -188,7 +188,7 @@ static int lp_preempt(void *handle)
} }
/* /*
* Try to negotiate to a new mode; if unsuccessful negotiate to * Try to negotiate to a new mode; if unsuccessful negotiate to
* compatibility mode. Return the mode we ended up in. * compatibility mode. Return the mode we ended up in.
*/ */
@ -326,7 +326,7 @@ static ssize_t lp_write(struct file * file, const char __user * buf,
*/ */
lp_claim_parport_or_block (&lp_table[minor]); lp_claim_parport_or_block (&lp_table[minor]);
/* Go to the proper mode. */ /* Go to the proper mode. */
lp_table[minor].current_mode = lp_negotiate (port, lp_table[minor].current_mode = lp_negotiate (port,
lp_table[minor].best_mode); lp_table[minor].best_mode);
parport_set_timeout (lp_table[minor].dev, parport_set_timeout (lp_table[minor].dev,
@ -355,7 +355,7 @@ static ssize_t lp_write(struct file * file, const char __user * buf,
/* incomplete write -> check error ! */ /* incomplete write -> check error ! */
int error; int error;
parport_negotiate (lp_table[minor].dev->port, parport_negotiate (lp_table[minor].dev->port,
IEEE1284_MODE_COMPAT); IEEE1284_MODE_COMPAT);
lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; lp_table[minor].current_mode = IEEE1284_MODE_COMPAT;
@ -372,8 +372,8 @@ static ssize_t lp_write(struct file * file, const char __user * buf,
} }
parport_yield_blocking (lp_table[minor].dev); parport_yield_blocking (lp_table[minor].dev);
lp_table[minor].current_mode lp_table[minor].current_mode
= lp_negotiate (port, = lp_negotiate (port,
lp_table[minor].best_mode); lp_table[minor].best_mode);
} else if (need_resched()) } else if (need_resched())
@ -389,13 +389,13 @@ static ssize_t lp_write(struct file * file, const char __user * buf,
retv = -EFAULT; retv = -EFAULT;
break; break;
} }
} }
} while (count > 0); } while (count > 0);
if (test_and_clear_bit(LP_PREEMPT_REQUEST, if (test_and_clear_bit(LP_PREEMPT_REQUEST,
&lp_table[minor].bits)) { &lp_table[minor].bits)) {
printk(KERN_INFO "lp%d releasing parport\n", minor); printk(KERN_INFO "lp%d releasing parport\n", minor);
parport_negotiate (lp_table[minor].dev->port, parport_negotiate (lp_table[minor].dev->port,
IEEE1284_MODE_COMPAT); IEEE1284_MODE_COMPAT);
lp_table[minor].current_mode = IEEE1284_MODE_COMPAT; lp_table[minor].current_mode = IEEE1284_MODE_COMPAT;
lp_release_parport (&lp_table[minor]); lp_release_parport (&lp_table[minor]);
@ -542,7 +542,7 @@ static int lp_open(struct inode * inode, struct file * file)
/* Determine if the peripheral supports ECP mode */ /* Determine if the peripheral supports ECP mode */
lp_claim_parport_or_block (&lp_table[minor]); lp_claim_parport_or_block (&lp_table[minor]);
if ( (lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) && if ( (lp_table[minor].dev->port->modes & PARPORT_MODE_ECP) &&
!parport_negotiate (lp_table[minor].dev->port, !parport_negotiate (lp_table[minor].dev->port,
IEEE1284_MODE_ECP)) { IEEE1284_MODE_ECP)) {
printk (KERN_INFO "lp%d: ECP mode\n", minor); printk (KERN_INFO "lp%d: ECP mode\n", minor);
lp_table[minor].best_mode = IEEE1284_MODE_ECP; lp_table[minor].best_mode = IEEE1284_MODE_ECP;
@ -615,7 +615,7 @@ static int lp_do_ioctl(unsigned int minor, unsigned int cmd,
case LPWAIT: case LPWAIT:
LP_WAIT(minor) = arg; LP_WAIT(minor) = arg;
break; break;
case LPSETIRQ: case LPSETIRQ:
return -EINVAL; return -EINVAL;
break; break;
case LPGETIRQ: case LPGETIRQ:
@ -908,7 +908,7 @@ static int __init lp_setup (char *str)
static int lp_register(int nr, struct parport *port) static int lp_register(int nr, struct parport *port)
{ {
lp_table[nr].dev = parport_register_device(port, "lp", lp_table[nr].dev = parport_register_device(port, "lp",
lp_preempt, NULL, NULL, 0, lp_preempt, NULL, NULL, 0,
(void *) &lp_table[nr]); (void *) &lp_table[nr]);
if (lp_table[nr].dev == NULL) if (lp_table[nr].dev == NULL)
@ -921,7 +921,7 @@ static int lp_register(int nr, struct parport *port)
device_create(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL, device_create(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL,
"lp%d", nr); "lp%d", nr);
printk(KERN_INFO "lp%d: using %s (%s).\n", nr, port->name, printk(KERN_INFO "lp%d: using %s (%s).\n", nr, port->name,
(port->irq == PARPORT_IRQ_NONE)?"polling":"interrupt-driven"); (port->irq == PARPORT_IRQ_NONE)?"polling":"interrupt-driven");
#ifdef CONFIG_LP_CONSOLE #ifdef CONFIG_LP_CONSOLE
@ -1060,7 +1060,7 @@ static int __init lp_init_module (void)
else { else {
char *ep; char *ep;
unsigned long r = simple_strtoul(parport[n], &ep, 0); unsigned long r = simple_strtoul(parport[n], &ep, 0);
if (ep != parport[n]) if (ep != parport[n])
parport_nr[n] = r; parport_nr[n] = r;
else { else {
printk(KERN_ERR "lp: bad port specifier `%s'\n", parport[n]); printk(KERN_ERR "lp: bad port specifier `%s'\n", parport[n]);