projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd72ad3
)
Input: jornada720_ts - fix build error ( LONG() usage )
author
Kristoffer Ericson
<
[email protected]
>
Tue, 16 Sep 2008 18:19:25 +0000
(14:19 -0400)
committer
Dmitry Torokhov
<
[email protected]
>
Tue, 16 Sep 2008 18:20:40 +0000
(14:20 -0400)
This patch removes the usage of LONG() which is deprecated; we also
replace BIT() with BIT_MASK().
signed-off-by: Kristoffer Ericson <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/jornada720_ts.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/jornada720_ts.c
b/drivers/input/touchscreen/jornada720_ts.c
index 1aca108b1031f298bca7f0f51a4401d3ab5193d5..b7f1260738a6dd11b5be14e5f559d157428dcddb 100644
(file)
--- a/
drivers/input/touchscreen/jornada720_ts.c
+++ b/
drivers/input/touchscreen/jornada720_ts.c
@@
-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);