]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
USB: usb/serial/ch341.c: make 4 functions static
authorAdrian Bunk <bunk@kernel.org>
Sun, 9 Sep 2007 20:25:04 +0000 (22:25 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:29 +0000 (14:55 -0700)
This patch makes four needlessly global functions static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ch341.c

index eb681069e24e31103dc7976db4316349a2459d33..6b252ceb39a828b69b29b78b2dfdfdf572a88bbd 100644 (file)
@@ -66,7 +66,8 @@ static int ch341_control_in(struct usb_device *dev,
        return r;
 }
 
-int ch341_set_baudrate(struct usb_device *dev, struct ch341_private *priv)
+static int ch341_set_baudrate(struct usb_device *dev,
+                             struct ch341_private *priv)
 {
        short a, b;
        int r;
@@ -108,14 +109,15 @@ int ch341_set_baudrate(struct usb_device *dev, struct ch341_private *priv)
        return r;
 }
 
-int ch341_set_handshake(struct usb_device *dev, struct ch341_private *priv)
+static int ch341_set_handshake(struct usb_device *dev,
+                              struct ch341_private *priv)
 {
        dbg("ch341_set_handshake(%d,%d)", priv->dtr, priv->rts);
        return ch341_control_out(dev, 0xa4,
                ~((priv->dtr?1<<5:0)|(priv->rts?1<<6:0)), 0);
 }
 
-int ch341_get_status(struct usb_device *dev)
+static int ch341_get_status(struct usb_device *dev)
 {
        char *buffer;
        int r;
@@ -142,7 +144,7 @@ out:        kfree(buffer);
 
 /* -------------------------------------------------------------------------- */
 
-int ch341_configure(struct usb_device *dev, struct ch341_private *priv)
+static int ch341_configure(struct usb_device *dev, struct ch341_private *priv)
 {
        char *buffer;
        int r;