diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-03-17 01:09:25 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-03-17 02:28:30 -0400 |
commit | b4b480a8d643cbdef6f925e55759c18a674fa454 (patch) | |
tree | 3eb9b8b905bd128e6b90c2cf5bea2500ee333381 /drivers | |
parent | 2721a89ac41f2e7705484c1582c293c4eee5344d (diff) |
Input: tsc2005 - set up parent device
Set up SPI device as parent of the input device so it gets placed into
proper place in sysfs tree.
Tested-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/touchscreen/tsc2005.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/tsc2005.c b/drivers/input/touchscreen/tsc2005.c index 732c81e9a3e6..e294648a97c9 100644 --- a/drivers/input/touchscreen/tsc2005.c +++ b/drivers/input/touchscreen/tsc2005.c | |||
@@ -555,6 +555,7 @@ static int __devinit tsc2005_setup(struct tsc2005 *ts, | |||
555 | snprintf(ts->phys, sizeof(ts->phys), "%s/input-ts", | 555 | snprintf(ts->phys, sizeof(ts->phys), "%s/input-ts", |
556 | dev_name(&ts->spi->dev)); | 556 | dev_name(&ts->spi->dev)); |
557 | ts->idev->phys = ts->phys; | 557 | ts->idev->phys = ts->phys; |
558 | ts->idev->dev.parent = &ts->spi->dev; | ||
558 | ts->idev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); | 559 | ts->idev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); |
559 | ts->idev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE); | 560 | ts->idev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE); |
560 | ts->idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); | 561 | ts->idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); |