Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: apbps2 - fix comment style and typos

Capitalize comment starts to match kernel coding style.
Fix spelling: "reciever" -> "receiver"
Fix grammar: "it's" (contraction of "it is") -> "its" (possessive)
Remove uncertainty from "Clear error bits?" comment.

Compile tested only.

Signed-off-by: Micah Ostrow <bluefox9516@gmail.com>
Link: https://patch.msgid.link/20260127181735.57132-1-bluefox9516@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Micah Ostrow and committed by
Dmitry Torokhov
ad9cb48b ed8a4ef2

+7 -7
+7 -7
drivers/input/serio/apbps2.c
··· 67 67 rxflags = (status & APBPS2_STATUS_PE) ? SERIO_PARITY : 0; 68 68 rxflags |= (status & APBPS2_STATUS_FE) ? SERIO_FRAME : 0; 69 69 70 - /* clear error bits? */ 70 + /* Clear error bits */ 71 71 if (rxflags) 72 72 iowrite32be(0, &priv->regs->status); 73 73 ··· 82 82 static int apbps2_write(struct serio *io, unsigned char val) 83 83 { 84 84 struct apbps2_priv *priv = io->port_data; 85 - unsigned int tleft = 10000; /* timeout in 100ms */ 85 + unsigned int tleft = 10000; /* Timeout in 100ms */ 86 86 87 - /* delay until PS/2 controller has room for more chars */ 87 + /* Delay until PS/2 controller has room for more chars */ 88 88 while ((ioread32be(&priv->regs->status) & APBPS2_STATUS_TF) && tleft--) 89 89 udelay(10); 90 90 ··· 104 104 struct apbps2_priv *priv = io->port_data; 105 105 int limit; 106 106 107 - /* clear error flags */ 107 + /* Clear error flags */ 108 108 iowrite32be(0, &priv->regs->status); 109 109 110 110 /* Clear old data if available (unlikely) */ ··· 112 112 while ((ioread32be(&priv->regs->status) & APBPS2_STATUS_DR) && --limit) 113 113 ioread32be(&priv->regs->data); 114 114 115 - /* Enable reciever and it's interrupt */ 115 + /* Enable receiver and its interrupt */ 116 116 iowrite32be(APBPS2_CTRL_RE | APBPS2_CTRL_RI, &priv->regs->ctrl); 117 117 118 118 return 0; ··· 122 122 { 123 123 struct apbps2_priv *priv = io->port_data; 124 124 125 - /* stop interrupts at PS/2 HW level */ 125 + /* Stop interrupts at PS/2 HW level */ 126 126 iowrite32be(0, &priv->regs->ctrl); 127 127 } 128 128 ··· 139 139 return -ENOMEM; 140 140 } 141 141 142 - /* Find Device Address */ 142 + /* Find device address */ 143 143 priv->regs = devm_platform_get_and_ioremap_resource(ofdev, 0, NULL); 144 144 if (IS_ERR(priv->regs)) 145 145 return PTR_ERR(priv->regs);