summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/logips2pp.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/logips2pp.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/logips2pp.c')
-rw-r--r--drivers/input/mouse/logips2pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/mouse/logips2pp.c b/drivers/input/mouse/logips2pp.c
index 422da1cd9e76..ef9c97f5e3d7 100644
--- a/drivers/input/mouse/logips2pp.c
+++ b/drivers/input/mouse/logips2pp.c
@@ -402,7 +402,7 @@ int ps2pp_detect(struct psmouse *psmouse, bool set_properties)
psmouse->set_resolution = ps2pp_set_resolution;
psmouse->disconnect = ps2pp_disconnect;
- error = device_create_file(&psmouse->ps2dev.serio->dev,
+ error = device_create_file(&ps2dev->serio->dev,
&psmouse_attr_smartscroll.dattr);
if (error) {
psmouse_err(psmouse,