lkml.org 
[lkml]   [2005]   [Feb]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [rfc/rft] Fujitsu B-Series Lifebook PS/2 TouchScreen driver
On Sun, Feb 13, 2005 at 01:49:10AM -0500, Dmitry Torokhov wrote:

> On Friday 11 February 2005 15:10, Vojtech Pavlik wrote:
> > +       if (set_properties) {
> > +               psmouse->vendor = "Fujitsu Lifebook";
> > +               psmouse->name = "TouchScreen";
> > +       }
> > +
> > +       psmouse->dev.evbit[0] = BIT(EV_ABS) | BIT(EV_KEY) | BIT(EV_REL);
> > +       psmouse->dev.keybit[LONG(BTN_LEFT)] = BIT(BTN_LEFT) | BIT(BTN_MIDDLE) | BIT(BTN_RIGHT);
> > +       psmouse->dev.keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH);
> > +       psmouse->dev.relbit[0] = BIT(REL_X) | BIT(REL_Y);
> > +       input_set_abs_params(&psmouse->dev, ABS_X, 130, 885, 0, 0);
> > +       input_set_abs_params(&psmouse->dev, ABS_Y, 272, 830, 0, 0);
> > +
> > +       psmouse->protocol_handler = lifebook_process_byte;
> > +       psmouse->disconnect = lifebook_disconnect;
> > +       psmouse->reconnect = lifebook_reconnect;
> > +       psmouse->pktsize = 3;
> >
>
> Hi Vojtech,
>
> I have been trying not alter kernel state in probe routines (still has
> to touch hardware for mice that do not have separate detection routine)
> unless set_properties is set. So all of the above should be in
> "if (set_properties)" statement.

Ok, I updated the patch.

--
Vojtech Pavlik
SuSE Labs, SuSE CR
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:10    [W:0.128 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site