summaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/sermouse.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor@insightbb.com>2007-04-12 07:34:02 +0200
committerDmitry Torokhov <dtor@insightbb.com>2007-04-12 07:34:02 +0200
commit0ca1804f2e4d78e6a037da23f96aa56f762e78fb (patch)
tree58430e1f5e93092f111c438e4575be0c04c121a4 /drivers/input/mouse/sermouse.c
parentInput: add input_{get|set}_drvdata() helpers (diff)
downloadlinux-0ca1804f2e4d78e6a037da23f96aa56f762e78fb.tar.xz
linux-0ca1804f2e4d78e6a037da23f96aa56f762e78fb.zip
Input: drivers/input/mice - don't access dev->private directly
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/sermouse.c')
-rw-r--r--drivers/input/mouse/sermouse.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/input/mouse/sermouse.c b/drivers/input/mouse/sermouse.c
index 0ac448a82bde..1cb40e724fec 100644
--- a/drivers/input/mouse/sermouse.c
+++ b/drivers/input/mouse/sermouse.c
@@ -271,7 +271,6 @@ static int sermouse_connect(struct serio *serio, struct serio_driver *drv)
input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REL);
input_dev->keybit[LONG(BTN_MOUSE)] = BIT(BTN_LEFT) | BIT(BTN_RIGHT);
input_dev->relbit[0] = BIT(REL_X) | BIT(REL_Y);
- input_dev->private = sermouse;
if (c & 0x01) set_bit(BTN_MIDDLE, input_dev->keybit);
if (c & 0x02) set_bit(BTN_SIDE, input_dev->keybit);