* Re: [PATCH/HP7XX] - Fix touchscreen build error ( LONG() usage )
2008-09-17 3:08 [PATCH/HP7XX] - Fix touchscreen build error ( LONG() usage ) Kristoffer Ericson
@ 2008-09-16 18:29 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2008-09-16 18:29 UTC (permalink / raw)
To: Kristoffer Ericson; +Cc: linux-input@vger.kernel.org
On Tue, Sep 16, 2008 at 08:08:57PM -0700, Kristoffer Ericson wrote:
> 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.
--
Dmitry
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH/HP7XX] - Fix touchscreen build error ( LONG() usage )
@ 2008-09-17 3:08 Kristoffer Ericson
2008-09-16 18:29 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Kristoffer Ericson @ 2008-09-17 3:08 UTC (permalink / raw)
To: dmitry; +Cc: linux-input@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 997 bytes --]
This patch removes the usage of LONG() which is deprecated inside
the jornada720_ts.c file.
We also replace BIT() with BIT_MASK().
signed-off-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
diff --git a/drivers/input/touchscreen/jornada720_ts.c b/drivers/input/touchscreen/jornada720_ts.c
index bf44f9d..c8b7e8a 100644
--- 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);
--
Kristoffer Ericson <kristoffer.ericson@gmail.com>
[-- Attachment #2: jornada720_ts-LONG.patch --]
[-- Type: application/octet-stream, Size: 743 bytes --]
diff --git a/drivers/input/touchscreen/jornada720_ts.c b/drivers/input/touchscreen/jornada720_ts.c
index bf44f9d..c8b7e8a 100644
--- 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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-09-16 18:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-17 3:08 [PATCH/HP7XX] - Fix touchscreen build error ( LONG() usage ) Kristoffer Ericson
2008-09-16 18:29 ` Dmitry Torokhov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).