mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kuroi <kuroi69@yahoo.com>
To: linux-kernel@vger.kernel.org
Subject: Trying to make a module
Date: Thu, 15 Jan 2004 23:28:42 -0600 (CST)	[thread overview]
Message-ID: <20040116052842.84253.qmail@web40707.mail.yahoo.com> (raw)
In-Reply-To: <20040116050613.GE1748@srv-lnx2600.matchmail.com>

Hi everybody,

I am trying to make a driver for my WizardPen and I
found that a project existed for the kernel, I was
talking with the guy who wrote the mini faq and he
told me this:

The procedure to install the driver is the same as
described in the mini-howto, but after you have
patched your kernel, you just have to look hid-core.c
for :

> input->evbit[0] |= BIT(EV_MSC);
> input->mscbit[0] |= BIT(MSC_SERIAL);
> input_event(input, EV_MSC, MSC_SERIAL, 0);
> 
> And replace it by :
>
> struct hid_input* hidinput =
> list_entry(hid->inputs.next, struct
> hid_input,
> list);
> struct input_dev* input = &hidinput->input;
>
> input->evbit[0] |= BIT(EV_MSC);
> input->mscbit[0] |= BIT(MSC_SERIAL);
> input_event(input, EV_MSC, MSC_SERIAL, 0);

So I made it but, it fails givin me this output:

hid-core.c: In function `hid_input_report':
hid-core.c:945: error: structure has no member named
`input'
hid-core.c:946: error: structure has no member named
`input'
hid-core.c:947: error: structure has no member named
`input'
hid-core.c:943: warning: unused variable `input'
make[2]: *** [hid-core.o] Error 1
make[2]: Leaving directory
`/usr/src/linux-2.4.22-10mdk/drivers/usb'
make[1]: *** [_modsubdir_usb] Error 2
make[1]: Leaving directory
`/usr/src/linux-2.4.22-10mdk/drivers'
make: *** [_mod_drivers] Error 2

It appears that the USB API change, so someone could
help me telling me where I can find the new
specifications for the new API.

I am really new trying to change things in the kernel
but I want to learn.



_________________________________________________________
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

      reply	other threads:[~2004-01-16  5:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16  5:06 Fwd: Re: [2.6] nfs_rename: target $file busy, d_count=2 Mike Fedyk
2004-01-16  5:28 ` Kuroi [this message]

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=20040116052842.84253.qmail@web40707.mail.yahoo.com \
    --to=kuroi69@yahoo.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®