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


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to