Build fixes for the tsc210x driver.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
struct tsc210x_hwmon {
int bat[2], aux[2], temp[2];
- struct class_device *dev;
+ struct device *dev;
struct tsc210x_config *pdata;
#ifdef CONFIG_APM
/* prevent APM from colliding with normal hwmon accessors */
dev->name = "TSC210x Touchscreen";
dev->cdev.dev = &pdev->dev;
dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
- dev->keybit[LONG(BTN_TOUCH)] |= BIT(BTN_TOUCH);
+ dev->keybit[BIT_WORD(BTN_TOUCH)] |= BIT_MASK(BTN_TOUCH);
dev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);
dev->phys = "tsc210x/input0";
dev->id.bustype = BUS_HOST;