aboutsummaryrefslogtreecommitdiff
path: root/drivers/input/keyboard/aaed2000_kbd.c
diff options
context:
space:
mode:
authorDmitry Torokhov2007-04-12 01:34:20 -0400
committerDmitry Torokhov2007-04-12 01:34:20 -0400
commitb356872fa48a3f6b6f187444b0ea55e6e21c3575 (patch)
treeb07658d166da4c32fd9801eb8d102b081fbea140 /drivers/input/keyboard/aaed2000_kbd.c
parent8715c1cfadf8cce24e79d254f95bd4a84c7741f0 (diff)
Input: drivers/input/keyboard - don't access dev->private directly
Use input_get_drvdata() and input_set_drvdata() instead. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard/aaed2000_kbd.c')
-rw-r--r--drivers/input/keyboard/aaed2000_kbd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/input/keyboard/aaed2000_kbd.c b/drivers/input/keyboard/aaed2000_kbd.c
index 65fcb6af63a8..e584413f1d04 100644
--- a/drivers/input/keyboard/aaed2000_kbd.c
+++ b/drivers/input/keyboard/aaed2000_kbd.c
@@ -97,7 +97,7 @@ static void aaedkbd_work(void *data)
static int aaedkbd_open(struct input_dev *indev)
{
- struct aaedkbd *aaedkbd = indev->private;
+ struct aaedkbd *aaedkbd = input_get_drvdata(indev);
schedule_delayed_work(&aaedkbd->workq, msecs_to_jiffies(SCAN_INTERVAL));
@@ -106,7 +106,7 @@ static int aaedkbd_open(struct input_dev *indev)
static void aaedkbd_close(struct input_dev *indev)
{
- struct aaedkbd *aaedkbd = indev->private;
+ struct aaedkbd *aaedkbd = input_get_drvdata(indev);
cancel_delayed_work(&aaedkbd->workq);
flush_scheduled_work();
@@ -142,7 +142,7 @@ static int __devinit aaedkbd_probe(struct platform_device *pdev)
input_dev->id.product = 0x0001;
input_dev->id.version = 0x0100;
input_dev->cdev.dev = &pdev->dev;
- input_dev->private = aaedkbd;
+ input_set_drvdata(input_dev, aaedkbd);
input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_REP);
input_dev->keycode = aaedkbd->keycode;