]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/input/touchscreen/elo.c
Merge commit 'v2.6.27-rc7' into core/locking
[linux-2.6-omap-h63xx.git] / drivers / input / touchscreen / elo.c
index 7e2f326fb0081141c53da7e39893b12b99a6a10d..d20689cdbd5d63665601e9e00baca7ffd08eb42d 100644 (file)
@@ -318,10 +318,10 @@ static int elo_connect(struct serio *serio, struct serio_driver *drv)
        input_dev->id.vendor = SERIO_ELO;
        input_dev->id.product = elo->id;
        input_dev->id.version = 0x0100;
-       input_dev->cdev.dev = &serio->dev;
+       input_dev->dev.parent = &serio->dev;
 
-       input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
-       input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH);
+       input_dev->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_ABS);
+       input_dev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
 
        serio_set_drvdata(serio, elo);
        err = serio_open(serio, drv);