From: Oliver Neukum <oliver@neukum.org>
To: linux-usb-devel@lists.sourceforge.net
Cc: "Lanslott Gish" <lanslott.gish@gmail.com>,
linux-kernel@vger.kernel.org, "Greg KH" <greg@kroah.com>,
"Alan Cox" <alan@redhat.com>
Subject: Re: [linux-usb-devel] [PATCH] add support for PANJIT TouchSet USB Touchscreen Device
Date: Mon, 6 Mar 2006 12:05:32 +0100 [thread overview]
Message-ID: <200603061205.32660.oliver@neukum.org> (raw)
In-Reply-To: <38c09b90603060114n79dcc45p499603b614bbbe20@mail.gmail.com>
Am Montag, 6. März 2006 10:14 schrieb Lanslott Gish:
> hi,
>
> this is the first version of the patch from a newbie :)
> add support for PANJIT TouchSet USB touchscreen device.
>
> +#define TOUCHSET_DOWN 0x01
> +#define TOUCHSET_POINT_TOUCH 0x81
> +#define TOUCHSET_POINT_NOTOUCH 0x80
> +
> +#define TOUCHSET_GET_TOUCHED(dat) ((((dat)[0]) & TOUCHSET_DOWN) ? 1 : 0)
Drop the "?"
> +static int touchset_open(struct input_dev *input)
> +{
> + struct touchset_usb *touchset = input->private;
> +
> + touchset->irq->dev = touchset->udev;
> +
> + if (usb_submit_urb(touchset->irq, GFP_ATOMIC))
GFP_KERNEL
> + return -EIO;
> +
> + return 0;
> +}
> +
> +static void touchset_close(struct input_dev *input)
> +{
> + struct touchset_usb *touchset = input->private;
> +
> + usb_kill_urb(touchset->irq);
> +}
> +
> +static int touchset_alloc_buffers(struct usb_device *udev,
> + struct touchset_usb *touchset)
> +{
> + touchset->data = usb_buffer_alloc(udev, TOUCHSET_REPORT_DATA_SIZE,
> + SLAB_ATOMIC, &touchset->data_dma);
SLAB_KERNEL
Regards
Oliver
next prev parent reply other threads:[~2006-03-06 11:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-06 9:14 Lanslott Gish
2006-03-06 11:05 ` Oliver Neukum [this message]
2006-03-08 2:57 ` [linux-usb-devel] " Lanslott Gish
2006-03-08 5:25 ` Greg KH
[not found] ` <38c09b90603080015p3af7c498i34a49ce9a4a29e58@mail.gmail.com>
2006-03-08 18:25 ` Greg KH
2006-03-07 3:08 ` Dmitry Torokhov
[not found] ` <38c09b90603071742i4e1463b8sa332fb79dd67f10d@mail.gmail.com>
2006-03-08 3:57 ` Fwd: " Lanslott Gish
2006-03-08 5:24 ` Greg KH
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=200603061205.32660.oliver@neukum.org \
--to=oliver@neukum.org \
--cc=alan@redhat.com \
--cc=greg@kroah.com \
--cc=lanslott.gish@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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
Powered by JetHome