]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: gscps2 - fix compilation error introduced with switch to guards
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Oct 2024 21:07:42 +0000 (14:07 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 20 Oct 2024 03:53:32 +0000 (20:53 -0700)
Change 44f920069911 ("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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410192242.GL0CoAbv-lkp@intel.com/
Fixes: 44f920069911 ("Input: gscps2 - use guard notation when acquiring spinlock")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/gscps2.c

index cf0603d1a1139fb905b4a4121e22c26f576ab0aa..4fada5bc2a3828b4e643c702d57518f5612145ff 100644 (file)
@@ -198,8 +198,6 @@ static void gscps2_enable(struct gscps2port *ps2port, int enable)
 
 static void gscps2_reset(struct gscps2port *ps2port)
 {
-       unsigned long flags;
-
        /* reset the interface */
        guard(spinlock_irqsave)(&ps2port->lock);
        gscps2_flush(ps2port);
@@ -218,7 +216,7 @@ static void gscps2_read_data(struct gscps2port *ps2port)
                if (!(status & GSC_STAT_RBNE))
                        break;
 
-               ps2port->buffer[ps2port->append].ste = status;
+               ps2port->buffer[ps2port->append].str = status;
                ps2port->buffer[ps2port->append].data =
                                gscps2_readb_input(ps2port->addr);
        } while (true);