All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stuart Brady <sdbrady@ntlworld.com>
To: parisc-linux@lists.parisc-linux.org
Subject: [parisc-linux] [PATCH] Fix HIL Mouse driver for 2.6
Date: Thu, 26 Aug 2004 05:54:14 +0100	[thread overview]
Message-ID: <20040826045414.GA3510@ntlworld.com> (raw)

Hi,

This patch makes the HIL pointer driver work in 2.6.  I have tested
it with both gpm and xfree86.

IIUC, users of PS/2 mice with HIL hubs should use the psmouse driver
(CONFIG_MOUSE_PS2) instead.  CONFIG_MOUSE_HIL is not needed for this.

The hil_ptr driver is for genuine HIL mice.  To compile it you need
CONFIG_MOUSE_HIL.  CONFIG_MOUSE_PS2 is not needed for HIL mice.

Index: drivers/input/mouse/hil_ptr.c
===================================================================
RCS file: /var/cvs/linux-2.6/drivers/input/mouse/hil_ptr.c,v
retrieving revision 1.8
diff -u -r1.8 hil_ptr.c
--- drivers/input/mouse/hil_ptr.c	6 Jan 2004 22:31:59 -0000	1.8
+++ drivers/input/mouse/hil_ptr.c	26 Aug 2004 03:58:11 -0000
@@ -176,6 +176,7 @@
 		btn = ptr->btnmap[btn];
 		input_report_key(dev, btn, !up);
 	}
+	input_sync(dev);
  out:
 	ptr->idx4 = 0;
 	up(&ptr->sem);
@@ -284,6 +285,7 @@
 
 	up(&(ptr->sem));
 
+	init_input_dev(&ptr->dev);
 	did = ptr->idd[0];
 	idd = ptr->idd + 1;
 	txt = "unknown";

-- 
Stuart Brady
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

             reply	other threads:[~2004-08-26  4:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-26  4:54 Stuart Brady [this message]
2004-08-26  7:07 ` [parisc-linux] [PATCH] Fix HIL Mouse driver for 2.6 Helge Deller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040826045414.GA3510@ntlworld.com \
    --to=sdbrady@ntlworld.com \
    --cc=parisc-linux@lists.parisc-linux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.