Commit b4b480a8 authored by Dmitry Torokhov's avatar Dmitry Torokhov

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: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 2721a89a
...@@ -555,6 +555,7 @@ static int __devinit tsc2005_setup(struct tsc2005 *ts, ...@@ -555,6 +555,7 @@ static int __devinit tsc2005_setup(struct tsc2005 *ts,
snprintf(ts->phys, sizeof(ts->phys), "%s/input-ts", snprintf(ts->phys, sizeof(ts->phys), "%s/input-ts",
dev_name(&ts->spi->dev)); dev_name(&ts->spi->dev));
ts->idev->phys = ts->phys; ts->idev->phys = ts->phys;
ts->idev->dev.parent = &ts->spi->dev;
ts->idev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY); ts->idev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY);
ts->idev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE); ts->idev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);
ts->idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); ts->idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment