[PATCH] USB: ftdi_sio redundant macro removal

[ftdi_sio] Replaced redundant INTERFACE_A and INTERFACE_B macros with
the equivalent PIT_SIOA and PIT_SIOB macros.

Signed-off-by: Ian Abbott <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>

---
commit 5e54f91d8d770c5a48da10a5c9c314c1c926536b
tree 3e453d56dda488e18b198b544345829aa7015fb2
parent 6f92872cc8085b9e65a8ec07aed106ce5d24f60b
author Ian Abbott <[EMAIL PROTECTED]> 1114787384 +0100
committer Greg KH <[EMAIL PROTECTED]> 1115188310 -0700

Index: drivers/usb/serial/ftdi_sio.c
===================================================================
--- de1e40db4b8017c7b8c8282c991b82956cb4e2bb/drivers/usb/serial/ftdi_sio.c  
(mode:100644 sha1:b31e09b099ef8d9b93826899108b1db8948febda)
+++ 3e453d56dda488e18b198b544345829aa7015fb2/drivers/usb/serial/ftdi_sio.c  
(mode:100644 sha1:0c4b43533268d2ae07accac38518106dcd689695)
@@ -1483,10 +1483,10 @@
        inter = serial->interface->altsetting->desc.bInterfaceNumber;
 
        if (inter) {
-               priv->interface = INTERFACE_B;
+               priv->interface = PIT_SIOB;
        }
        else  {
-               priv->interface = INTERFACE_A;
+               priv->interface = PIT_SIOA;
        }
        priv->baud_base = 48000000 / 2; /* Would be / 16, but FT2232C supports 
multiple of 0.125 divisor fractions! */
        
Index: drivers/usb/serial/ftdi_sio.h
===================================================================
--- de1e40db4b8017c7b8c8282c991b82956cb4e2bb/drivers/usb/serial/ftdi_sio.h  
(mode:100644 sha1:3734b5e339a065c07ae82be6804ce7e0e204e972)
+++ 3e453d56dda488e18b198b544345829aa7015fb2/drivers/usb/serial/ftdi_sio.h  
(mode:100644 sha1:96be36441149fccfe67d189792d2ffe62a1bb26b)
@@ -279,10 +279,6 @@
 #define FTDI_SIO_SET_LATENCY_TIMER     9 /* Set the latency timer */
 #define FTDI_SIO_GET_LATENCY_TIMER     10 /* Get the latency timer */
 
-/* Port interface code for FT2232C */
-#define INTERFACE_A            1
-#define INTERFACE_B            2
-
 
 /*
  *   BmRequestType:  1100 0000b



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to