Re: [PATCH 20/39] input: Create input_set_abs_params()
From: Jan-Benedict Glaw
Date: Mon Jun 07 2004 - 08:12:16 EST
On Mon, 2004-06-07 13:55:53 +0200, Vojtech Pavlik <vojtech@xxxxxxx>
wrote in message <10866093531704@xxxxxxxxxxxxxxx>:
> - make use of set_abs_params in touchscreen drivers
> @@ -125,11 +125,9 @@
>
> init_input_dev(&gunze->dev);
> gunze->dev.evbit[0] = BIT(EV_KEY) | BIT(EV_ABS);
> - gunze->dev.absbit[0] = BIT(ABS_X) | BIT(ABS_Y);
> gunze->dev.keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH);
> -
> - gunze->dev.absmin[ABS_X] = 96; gunze->dev.absmin[ABS_Y] = 72;
> - gunze->dev.absmax[ABS_X] = 4000; gunze->dev.absmax[ABS_Y] = 3000;
> + input_set_abs_params(&gunze->dev, ABS_X, 96, 4000, 0, 0);
> + input_set_abs_params(&gunze->dev, ABS_Y, 72, 3000, 0, 0);
>
> gunze->serio = serio;
> serio->private = gunze;
I guess ./drivers/input/mouse/vsxxxaa.c could use a patch like this,
too. It can also drive a graphic tablet. I'll prepare a patch this
night...
MfG, JBG
--
Jan-Benedict Glaw jbglaw@xxxxxxxxxx . +49-172-7608481
"Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg
fuer einen Freien Staat voll Freier Bürger" | im Internet! | im Irak!
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));
Attachment:
signature.asc
Description: Digital signature