Re: [PATCH] USB: usbserial: add support for serial port on the moschip 7715

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 24, 2010 at 05:23:29PM -0500, Mike Dunn wrote:
> Here's a patch which adds support for the serial port on a moschip 7715 
> device to the existing moschip 7720 driver.  The 7715 provides a serial and 
> parallel port on the same usb interface.  No support for the parallel port 
> yet.
>
> Some pointer magic is used to swap the ports assigned by the usbserial core 
> so that port 0 points to the device's serial port.
>
> Also corrected a spelling error.  I know Greg encourages that :-)
>
>
> Signed-off-by: Mike Dunn <mikedunn@xxxxxxxxxxx>
> ---
> drivers/usb/serial/mos7720.c |  134 
> ++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 130 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
> index 763e32a..afc8cae 100644
> --- a/drivers/usb/serial/mos7720.c
> +++ b/drivers/usb/serial/mos7720.c
> @@ -81,12 +81,15 @@ struct moschip_serial {
>
> static int debug;
>
> +static struct usb_serial_driver moschip7720_2port_driver;
> +
> #define USB_VENDOR_ID_MOSCHIP        0x9710
> #define MOSCHIP_DEVICE_ID_7720        0x7720
> #define MOSCHIP_DEVICE_ID_7715        0x7715
>
> static struct usb_device_id moschip_port_id_table[] = {
>     { USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7720) },
> +    { USB_DEVICE(USB_VENDOR_ID_MOSCHIP, MOSCHIP_DEVICE_ID_7715) },
>     { } /* terminating entry */

Your email client ate the tabs and spit out spaces instead, corrupting
the patch.  Care to read Documentation/email_clients.txt and try again?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux