diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-12 01:34:08 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2007-04-12 01:34:08 -0400 |
commit | 40b9b0b82e664bfdf26fd33014d52e23ff80b9f4 (patch) | |
tree | 703746fcfdd42e63110672d5da6014e2d6120ef7 /drivers/input/touchscreen/ucb1400_ts.c | |
parent | 0ca1804f2e4d78e6a037da23f96aa56f762e78fb (diff) |
Input: drivers/input/touchscreen - 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/touchscreen/ucb1400_ts.c')
-rw-r--r-- | drivers/input/touchscreen/ucb1400_ts.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/input/touchscreen/ucb1400_ts.c b/drivers/input/touchscreen/ucb1400_ts.c index c7db4032ef02..fe4bdf683d1d 100644 --- a/drivers/input/touchscreen/ucb1400_ts.c +++ b/drivers/input/touchscreen/ucb1400_ts.c | |||
@@ -369,7 +369,7 @@ static irqreturn_t ucb1400_hard_irq(int irqnr, void *devid) | |||
369 | 369 | ||
370 | static int ucb1400_ts_open(struct input_dev *idev) | 370 | static int ucb1400_ts_open(struct input_dev *idev) |
371 | { | 371 | { |
372 | struct ucb1400 *ucb = idev->private; | 372 | struct ucb1400 *ucb = input_get_drvdata(idev); |
373 | int ret = 0; | 373 | int ret = 0; |
374 | 374 | ||
375 | BUG_ON(ucb->ts_task); | 375 | BUG_ON(ucb->ts_task); |
@@ -385,7 +385,7 @@ static int ucb1400_ts_open(struct input_dev *idev) | |||
385 | 385 | ||
386 | static void ucb1400_ts_close(struct input_dev *idev) | 386 | static void ucb1400_ts_close(struct input_dev *idev) |
387 | { | 387 | { |
388 | struct ucb1400 *ucb = idev->private; | 388 | struct ucb1400 *ucb = input_get_drvdata(idev); |
389 | 389 | ||
390 | if (ucb->ts_task) | 390 | if (ucb->ts_task) |
391 | kthread_stop(ucb->ts_task); | 391 | kthread_stop(ucb->ts_task); |
@@ -507,7 +507,8 @@ static int ucb1400_ts_probe(struct device *dev) | |||
507 | } | 507 | } |
508 | printk(KERN_DEBUG "UCB1400: found IRQ %d\n", ucb->irq); | 508 | printk(KERN_DEBUG "UCB1400: found IRQ %d\n", ucb->irq); |
509 | 509 | ||
510 | idev->private = ucb; | 510 | input_set_drvdata(idev, ucb); |
511 | |||
511 | idev->cdev.dev = dev; | 512 | idev->cdev.dev = dev; |
512 | idev->name = "UCB1400 touchscreen interface"; | 513 | idev->name = "UCB1400 touchscreen interface"; |
513 | idev->id.vendor = ucb1400_reg_read(ucb, AC97_VENDOR_ID1); | 514 | idev->id.vendor = ucb1400_reg_read(ucb, AC97_VENDOR_ID1); |