summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/trackpoint.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/trackpoint.c
parenta0d86ecd23a9e8ae36e274191e55068cc4d10129 (diff)
downloadlinux-ad56814fccfba3fe3613fa4d9accff3816786f3c.tar.gz
linux-ad56814fccfba3fe3613fa4d9accff3816786f3c.tar.bz2
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/trackpoint.c')
-rw-r--r--drivers/input/mouse/trackpoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/mouse/trackpoint.c b/drivers/input/mouse/trackpoint.c
index 354d47ecd66a..75ed6df49738 100644
--- a/drivers/input/mouse/trackpoint.c
+++ b/drivers/input/mouse/trackpoint.c
@@ -379,7 +379,7 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)
if (!set_properties)
return 0;
- if (trackpoint_read(&psmouse->ps2dev, TP_EXT_BTN, &button_info)) {
+ if (trackpoint_read(ps2dev, TP_EXT_BTN, &button_info)) {
psmouse_warn(psmouse, "failed to get extended button data\n");
button_info = 0;
}
@@ -402,7 +402,7 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)
trackpoint_defaults(psmouse->private);
- error = trackpoint_power_on_reset(&psmouse->ps2dev);
+ error = trackpoint_power_on_reset(ps2dev);
/* Write defaults to TP only if reset fails. */
if (error)