Skip to content

Commit 2721674

Browse files
committed
Input: gscps2 - fix compilation error introduced with switch to guards
Change 44f9200 ("Input: gscps2 - use guard notation when acquiring spinlock") introduced typos resulting in compile errors noticed by the kernel test robot. Fix them. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 44f9200 ("Input: gscps2 - use guard notation when acquiring spinlock") Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 2c19d01 commit 2721674

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/input/serio/gscps2.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,6 @@ static void gscps2_enable(struct gscps2port *ps2port, int enable)
198198

199199
static void gscps2_reset(struct gscps2port *ps2port)
200200
{
201-
unsigned long flags;
202-
203201
/* reset the interface */
204202
guard(spinlock_irqsave)(&ps2port->lock);
205203
gscps2_flush(ps2port);
@@ -218,7 +216,7 @@ static void gscps2_read_data(struct gscps2port *ps2port)
218216
if (!(status & GSC_STAT_RBNE))
219217
break;
220218

221-
ps2port->buffer[ps2port->append].ste = status;
219+
ps2port->buffer[ps2port->append].str = status;
222220
ps2port->buffer[ps2port->append].data =
223221
gscps2_readb_input(ps2port->addr);
224222
} while (true);

0 commit comments

Comments
 (0)