Skip to content

Commit ad9cb48

Browse files
Micah Ostrowdtor
authored andcommitted
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>
1 parent ed8a4ef commit ad9cb48

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

drivers/input/serio/apbps2.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static irqreturn_t apbps2_isr(int irq, void *dev_id)
6767
rxflags = (status & APBPS2_STATUS_PE) ? SERIO_PARITY : 0;
6868
rxflags |= (status & APBPS2_STATUS_FE) ? SERIO_FRAME : 0;
6969

70-
/* clear error bits? */
70+
/* Clear error bits */
7171
if (rxflags)
7272
iowrite32be(0, &priv->regs->status);
7373

@@ -82,9 +82,9 @@ static irqreturn_t apbps2_isr(int irq, void *dev_id)
8282
static int apbps2_write(struct serio *io, unsigned char val)
8383
{
8484
struct apbps2_priv *priv = io->port_data;
85-
unsigned int tleft = 10000; /* timeout in 100ms */
85+
unsigned int tleft = 10000; /* Timeout in 100ms */
8686

87-
/* delay until PS/2 controller has room for more chars */
87+
/* Delay until PS/2 controller has room for more chars */
8888
while ((ioread32be(&priv->regs->status) & APBPS2_STATUS_TF) && tleft--)
8989
udelay(10);
9090

@@ -104,15 +104,15 @@ static int apbps2_open(struct serio *io)
104104
struct apbps2_priv *priv = io->port_data;
105105
int limit;
106106

107-
/* clear error flags */
107+
/* Clear error flags */
108108
iowrite32be(0, &priv->regs->status);
109109

110110
/* Clear old data if available (unlikely) */
111111
limit = 1024;
112112
while ((ioread32be(&priv->regs->status) & APBPS2_STATUS_DR) && --limit)
113113
ioread32be(&priv->regs->data);
114114

115-
/* Enable reciever and it's interrupt */
115+
/* Enable receiver and its interrupt */
116116
iowrite32be(APBPS2_CTRL_RE | APBPS2_CTRL_RI, &priv->regs->ctrl);
117117

118118
return 0;
@@ -122,7 +122,7 @@ static void apbps2_close(struct serio *io)
122122
{
123123
struct apbps2_priv *priv = io->port_data;
124124

125-
/* stop interrupts at PS/2 HW level */
125+
/* Stop interrupts at PS/2 HW level */
126126
iowrite32be(0, &priv->regs->ctrl);
127127
}
128128

@@ -139,7 +139,7 @@ static int apbps2_of_probe(struct platform_device *ofdev)
139139
return -ENOMEM;
140140
}
141141

142-
/* Find Device Address */
142+
/* Find device address */
143143
priv->regs = devm_platform_get_and_ioremap_resource(ofdev, 0, NULL);
144144
if (IS_ERR(priv->regs))
145145
return PTR_ERR(priv->regs);

0 commit comments

Comments
 (0)