Skip to contentSkip to conversation

- Fix touchscreen build error ( LONG() usage )

PATCH/HP7XX Applied Kristoffer Ericson 2 participants 2 messages Sep 16, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

This patch removes the usage of LONG() which is deprecated inside the jornada720_ts.c file.
We also replace BIT() with BIT_MASK().

drivers/input/touchscreen/jornada720_ts.c +2 -2
index bf44f9d..c8b7e8a 100644
@@ -119,8 +119,8 @@ static int __devinit jornada720_ts_probe(struct platform_device *pdev)
 	input_dev->id.bustype = BUS_HOST;
 	input_dev->dev.parent = &pdev->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);
 	input_set_abs_params(input_dev, ABS_X, 270, 3900, 0, 0);
 	input_set_abs_params(input_dev, ABS_Y, 180, 3700, 0, 0);
 
Signature · 1 line
Kristoffer Ericson <[email protected]>
drivers/input/touchscreen/jornada720_ts.c +2 -2
index bf44f9d..c8b7e8a 100644
@@ -119,8 +119,8 @@ static int __devinit jornada720_ts_probe(struct platform_device *pdev)
 	input_dev->id.bustype = BUS_HOST;
 	input_dev->dev.parent = &pdev->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);
 	input_set_abs_params(input_dev, ABS_X, 270, 3900, 0, 0);
 	input_set_abs_params(input_dev, ABS_Y, 180, 3700, 0, 0);
 
maintainer Applied
#1 lore raw
Quoted 3 lines · Kristoffer Ericson

This patch removes the usage of LONG() which is deprecated inside the jornada720_ts.c file.
We also replace BIT() with BIT_MASK().

Applied, thank you Kristoffer.

Signature · 1 line
Dmitry