]> Pileus Git - ~andy/linux/blobdiff - drivers/input/touchscreen/touchwin.c
Merge branch 'for-3.2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound...
[~andy/linux] / drivers / input / touchscreen / touchwin.c
index 3da9c8c3f1562e12f2a52e3fb60681deba3f376a..763a656a59f8270929f2366f710147ef2339e43e 100644 (file)
@@ -131,8 +131,9 @@ static int tw_connect(struct serio *serio, struct serio_driver *drv)
        input_dev->id.vendor = SERIO_TOUCHWIN;
        input_dev->id.product = 0;
        input_dev->id.version = 0x0100;
-       input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
-       input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH);
+       input_dev->dev.parent = &serio->dev;
+       input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
+       input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
        input_set_abs_params(tw->dev, ABS_X, TW_MIN_XC, TW_MAX_XC, 0, 0);
        input_set_abs_params(tw->dev, ABS_Y, TW_MIN_YC, TW_MAX_YC, 0, 0);