public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Till Harbaum / Lists <lists-RcHadlBFbzVAfugRpC6u6w@public.gmane.org>
Cc: i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
Subject: Re: [PATCH] New VID/PID pair for i2c-tiny-usb
Date: Wed, 26 Mar 2008 15:44:15 +0100	[thread overview]
Message-ID: <20080326154415.2981961a@hyperion.delvare> (raw)
In-Reply-To: <200803241042.31263.lists-RcHadlBFbzVAfugRpC6u6w@public.gmane.org>

Hi Till,

On Mon, 24 Mar 2008 10:42:30 +0100, Till Harbaum / Lists wrote:
> I have recently bought some USB PIDs from EZPrototypes for my USB projects
> and one will be for the i2c-tiny-usb. I have not yet started to use the new 
> one in the official i2c-tiny-usb firmware since i think it makes sense to get 
> the change into the kernel before releasing a modified firmware.
> 
> This patch adds support for the EZPrototypes USB vid/pid pair used in later
> i2c-tiny-usb firmware versions (avrusb v1.06 and up, usbtiny v2.06 and up).
> 
> Signed-off-by: Till Harbaum <Till-zicpKgigMvpAfugRpC6u6w@public.gmane.org>
> 
> --- linux-2.6.24.3.orig/drivers/i2c/busses/i2c-tiny-usb.c	2008-02-26 
> 01:20:20.000000000 +0100
> +++ linux-2.6.24.3/drivers/i2c/busses/i2c-tiny-usb.c	2008-03-24 
> 10:27:13.000000000 +0100

Note: your e-mail client is wrapping long lines -> patch doesn't apply.

> @@ -131,11 +131,13 @@
>  
>  /* ----- begin of usb layer ---------------------------------------------- */
>  
> -/* The usb i2c interface uses a vid/pid pair donated by */
> -/* Future Technology Devices International Ltd. */
> +/* Initially the usb i2c interface used a vid/pid pair donated by */
> +/* Future Technology Devices International Ltd., later a pair was */
> +/* bought from EZPrototypes */

Please use a single /* */ pair for multi-line comments.

>  static struct usb_device_id i2c_tiny_usb_table [] = {
> -	{ USB_DEVICE(0x0403, 0xc631) },
> -	{ }			/* Terminating entry */
> +	{ USB_DEVICE(0x0403, 0xc631) },   /* FTDI */
> +	{ USB_DEVICE(0x1c40, 0x0534) },   /* EZPrototypes */
> +	{ } /* Terminating entry */
>  };
>  
>  MODULE_DEVICE_TABLE(usb, i2c_tiny_usb_table);

Maybe I'm missing something obvious, but if you already have a device
ID, what's the point of switching to another? The original ID is not
going to be deprecated and/or used for something else, is it?

-- 
Jean Delvare

_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

  parent reply	other threads:[~2008-03-26 14:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-24  9:42 [PATCH] New VID/PID pair for i2c-tiny-usb Till Harbaum / Lists
     [not found] ` <200803241042.31263.lists-RcHadlBFbzVAfugRpC6u6w@public.gmane.org>
2008-03-26 14:44   ` Jean Delvare [this message]
     [not found]     ` <20080326154415.2981961a-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-03-27 19:47       ` Till Harbaum / Lists
     [not found]         ` <200803272047.21505.lists-RcHadlBFbzVAfugRpC6u6w@public.gmane.org>
2008-03-30 12:31           ` Jean Delvare
     [not found]             ` <20080330143107.1575e1bf-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-03-30 18:55               ` Till Harbaum / Lists
     [not found]                 ` <200803302055.15948.lists-RcHadlBFbzVAfugRpC6u6w@public.gmane.org>
2008-03-30 19:53                   ` Jean Delvare

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=20080326154415.2981961a@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
    --cc=lists-RcHadlBFbzVAfugRpC6u6w@public.gmane.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