Re: [PATCH 20/39] input: Create input_set_abs_params()

Jan-Benedict Glaw
2004-06-07T13:08:47Z

[-- Attachment #1: Type: text/plain, Size: 1218 bytes --]

On Mon, 2004-06-07 13:55:53 +0200, Vojtech Pavlik <vojtech@suse.cz>
wrote in message <10866093531704@twilight.ucw.cz>:
> - 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@lug-owl.de . +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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]