From 5a25a276e83166a8bd1e8e65f97e7654adb0b116 Mon Sep 17 00:00:00 2001 From: Dmitry Torokhov Date: Wed, 31 Oct 2007 12:33:26 +0100 Subject: [PATCH] --- yaml --- r: 72994 b: refs/heads/master c: f202df600c4485d406aa033ce793d3e78f5ff1e0 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/hid/hid-input.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 765c65ee40e6..61f575019cc0 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 368d290ba2a66338303b5d3998b182e404a9eb38 +refs/heads/master: f202df600c4485d406aa033ce793d3e78f5ff1e0 diff --git a/trunk/drivers/hid/hid-input.c b/trunk/drivers/hid/hid-input.c index 71eb7693e453..0b27da7d7497 100644 --- a/trunk/drivers/hid/hid-input.c +++ b/trunk/drivers/hid/hid-input.c @@ -297,7 +297,7 @@ static struct hid_usage *hidinput_find_key(struct hid_device *hid, static int hidinput_getkeycode(struct input_dev *dev, int scancode, int *keycode) { - struct hid_device *hid = dev->private; + struct hid_device *hid = input_get_drvdata(dev); struct hid_usage *usage; usage = hidinput_find_key(hid, scancode, 0); @@ -311,7 +311,7 @@ static int hidinput_getkeycode(struct input_dev *dev, int scancode, static int hidinput_setkeycode(struct input_dev *dev, int scancode, int keycode) { - struct hid_device *hid = dev->private; + struct hid_device *hid = input_get_drvdata(dev); struct hid_usage *usage; int old_keycode;