From: Greg KH <greg@kroah.com>
To: Josh Myer <jbm@joshisanerd.com>
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] [PATCH] KB Gear JamStudio USB Tablet
Date: Fri, 25 Oct 2002 10:17:58 -0700 [thread overview]
Message-ID: <20021025171758.GB29874@kroah.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0210250200290.25878-200000@blessed>
On Fri, Oct 25, 2002 at 02:04:25AM -0500, Josh Myer wrote:
> +static void kbtab_irq(struct urb *urb)
> +{
> +
> + struct kbtab *tab = urb->context;
> + unsigned char *data = tab->data;
> + struct input_dev *dev = &tab->dev;
> +
> + if(urb->status)
> + return;
Please use tabs instead of spaces. Documentation/CodingStyle has these
rules if you haven't read it yet.
> + FILL_INT_URB(&kbtab->irq, dev, usb_rcvintpipe(dev, endpoint->bEndpointAddress),
> + kbtab->data, 8, kbtab_irq, kbtab, endpoint->bInterval);
Please use usb_fill_int_urb() for all new code, and don't use the
"old-style" macros.
> +static struct usb_driver kbtab_driver = {
> + name: "kbtab",
> + probe: kbtab_probe,
> + disconnect: kbtab_disconnect,
> + id_table: kbtab_ids,
> +};
C99 style initializers are a good idea:
> +static struct usb_driver kbtab_driver = {
> + .name = "kbtab",
> + .probe = kbtab_probe,
> + .disconnect = kbtab_disconnect,
> + .id_table = kbtab_ids,
> +};
Other than those minor things, looks good.
thanks,
greg k-h
next prev parent reply other threads:[~2002-10-25 17:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 7:04 [PATCH] KB Gear JamStudio USB Tablet Josh Myer
2002-10-25 7:25 ` Brad Hards
2002-10-25 17:17 ` Greg KH [this message]
2002-10-25 19:39 ` Stephen Wille Padnos
2002-10-25 16:44 ` Josh Myer
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=20021025171758.GB29874@kroah.com \
--to=greg@kroah.com \
--cc=jbm@joshisanerd.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 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.