summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/elantech.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-22 08:44:46 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-22 08:52:22 +0100
commitad56814fccfba3fe3613fa4d9accff3816786f3c (patch)
treec2fcd8fedcf54cda44d2f54038778f3fde3ebacf /drivers/input/mouse/elantech.c
parentInput: misc - use local variables consistently (diff)
downloadlinux-ad56814fccfba3fe3613fa4d9accff3816786f3c.tar.xz
linux-ad56814fccfba3fe3613fa4d9accff3816786f3c.zip
Input: mouse - use local variables consistently
If a function declares a variable to access a structure element, use it consistently. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/elantech.c')
-rw-r--r--drivers/input/mouse/elantech.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
index db7d1d666ac1..efc8ec342351 100644
--- a/drivers/input/mouse/elantech.c
+++ b/drivers/input/mouse/elantech.c
@@ -1412,7 +1412,7 @@ int elantech_detect(struct psmouse *psmouse, bool set_properties)
struct ps2dev *ps2dev = &psmouse->ps2dev;
unsigned char param[3];
- ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_RESET_DIS);
+ ps2_command(ps2dev, NULL, PSMOUSE_CMD_RESET_DIS);
if (ps2_command(ps2dev, NULL, PSMOUSE_CMD_DISABLE) ||
ps2_command(ps2dev, NULL, PSMOUSE_CMD_SETSCALE11) ||