aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/cypress_ps2.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2017-01-21 23:44:46 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-01-21 23:52:22 -0800
commitad56814fccfba3fe3613fa4d9accff3816786f3c (patch)
treec2fcd8fedcf54cda44d2f54038778f3fde3ebacf /drivers/input/mouse/cypress_ps2.c
parentInput: misc - use local variables consistently (diff)
downloadlinux-dev-ad56814fccfba3fe3613fa4d9accff3816786f3c.tar.xz
linux-dev-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/cypress_ps2.c')
-rw-r--r--drivers/input/mouse/cypress_ps2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/mouse/cypress_ps2.c b/drivers/input/mouse/cypress_ps2.c
index 28dcfc822bf6..faa3a980d4f5 100644
--- a/drivers/input/mouse/cypress_ps2.c
+++ b/drivers/input/mouse/cypress_ps2.c
@@ -107,7 +107,7 @@ static int cypress_ps2_read_cmd_status(struct psmouse *psmouse,
enum psmouse_state old_state;
int pktsize;
- ps2_begin_command(&psmouse->ps2dev);
+ ps2_begin_command(ps2dev);
old_state = psmouse->state;
psmouse->state = PSMOUSE_CMD_MODE;
@@ -133,7 +133,7 @@ out:
psmouse->state = old_state;
psmouse->pktcnt = 0;
- ps2_end_command(&psmouse->ps2dev);
+ ps2_end_command(ps2dev);
return rc;
}