linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Tissoires <tissoire@cena.fr>
To: linux-input@vger.kernel.org
Subject: [PATCH 0/3] hid-magicmouse: delete the second input device
Date: Mon, 08 Mar 2010 22:29:28 +0100	[thread overview]
Message-ID: <1268083768.9018.18.camel@localhost.localdomain> (raw)

Hi,

in the current implementation of hid-magicmouse, the driver creates two
input device. As the Magic Mouse does not reports at the connexion the
fields of the multitouch part, the previous implementation creates a
second device to report to the user space the other axes.

I manage to remove this second device by manually injecting the fields
in the report created by the hid_register_report.

To do that, I had to export the function hid_register_field. This is the
object of the first patch.
Then, in the second patch, I inject the fields in the report, thus
removing the line containing 'report->size = 6;'
The last patch is just a cleanup.

Cheers,
Benjamin


                 reply	other threads:[~2010-03-08 21:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1268083768.9018.18.camel@localhost.localdomain \
    --to=tissoire@cena.fr \
    --cc=linux-input@vger.kernel.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 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).