[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220705061518.13533-1-jiaming@nfschina.com>
Date: Tue, 5 Jul 2022 14:15:18 +0800
From: Zhang Jiaming <jiaming@...china.com>
To: arnd@...db.de, gregkh@...uxfoundation.org
Cc: linux-kernel@...r.kernel.org, liqiong@...hina.com,
renyu@...china.com, Zhang Jiaming <jiaming@...china.com>
Subject: [PATCH] char: lp: Fix spelling mistake and add spaces
Fix spelling of doesn' t.
Add spaces around '=' and ','.
Signed-off-by: Zhang Jiaming <jiaming@...china.com>
---
drivers/char/lp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/char/lp.c b/drivers/char/lp.c
index 38aad99ebb61..214fb037fa76 100644
--- a/drivers/char/lp.c
+++ b/drivers/char/lp.c
@@ -26,7 +26,7 @@
* be still BUSY. This is needed at least with Epson Stylus Color. To enable
* the new TRUST_IRQ mode read the `LP OPTIMIZATION' section below...
* Fixed the irq on the rising edge of the strobe case.
- * Obsoleted the CAREFUL flag since a printer that doesn' t work with
+ * Obsoleted the CAREFUL flag since a printer that doesn't work with
* CAREFUL will block a bit after in lp_check_status().
* Andrea Arcangeli, 15 Oct 1998
* Obsoleted and removed all the lowlevel stuff implemented in the last
@@ -418,7 +418,7 @@ static ssize_t lp_read(struct file *file, char __user *buf,
size_t count, loff_t *ppos)
{
DEFINE_WAIT(wait);
- unsigned int minor=iminor(file_inode(file));
+ unsigned int minor = iminor(file_inode(file));
struct parport *port = lp_table[minor].dev->port;
ssize_t retval = 0;
char *kbuf = lp_table[minor].lp_buffer;
@@ -965,7 +965,7 @@ static void lp_attach(struct parport *port)
port->probe_info[0].class != PARPORT_CLASS_PRINTER)
return;
if (lp_count == LP_NO) {
- printk(KERN_INFO "lp: ignoring parallel port (max. %d)\n",LP_NO);
+ printk(KERN_INFO "lp: ignoring parallel port (max. %d)\n", LP_NO);
return;
}
for (i = 0; i < LP_NO; i++)
--
2.34.1
Powered by blists - more mailing lists