commit 2e0a6b8cd27375089f8356e7f1ce2319059696eb
tree 958f2dd42626fd18ba5f85b7bab1eb4a7680ff75
parent 2c47e7f37830cc83e7c77f0d5b7d4ac15105475b
author Adrian Bunk <[EMAIL PROTECTED]> 1114207621 -0700
committer Greg KH <[EMAIL PROTECTED]> 1114207621 -0700

    [PATCH] USB: drivers/usb/net/zd1201.c: make some code static
    
    This patch makes some needlessly global code static.
    
    Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
    
    

Index: drivers/usb/net/zd1201.c
===================================================================
--- 051be37e98b7f5a1fe590818c1044ea3aac3f42a/drivers/usb/net/zd1201.c  
(mode:100644 sha1:c81cd0a619bfcf1841b611f79b946956fbc82591)
+++ 958f2dd42626fd18ba5f85b7bab1eb4a7680ff75/drivers/usb/net/zd1201.c  
(mode:100644 sha1:f98cb2af024e1ac4bbbbc36a589752d261de3499)
@@ -45,7 +45,7 @@
 MODULE_DEVICE_TABLE(usb, zd1201_table);
 
 
-int zd1201_fw_upload(struct usb_device *dev, int apfw)
+static int zd1201_fw_upload(struct usb_device *dev, int apfw)
 {
        const struct firmware *fw_entry;
        char* data;
@@ -111,7 +111,7 @@
        return err;
 }
 
-void zd1201_usbfree(struct urb *urb, struct pt_regs *regs)
+static void zd1201_usbfree(struct urb *urb, struct pt_regs *regs)
 {
        struct zd1201 *zd = urb->context;
 
@@ -142,7 +142,8 @@
 
        total: 4 + 2 + 2 + 2 + 2 + 4 = 16
 */
-int zd1201_docmd(struct zd1201 *zd, int cmd, int parm0, int parm1, int parm2)
+static int zd1201_docmd(struct zd1201 *zd, int cmd, int parm0,
+                       int parm1, int parm2)
 {
        unsigned char *command;
        int ret;
@@ -175,7 +176,7 @@
 }
 
 /* Callback after sending out a packet */
-void zd1201_usbtx(struct urb *urb, struct pt_regs *regs)
+static void zd1201_usbtx(struct urb *urb, struct pt_regs *regs)
 {
        struct zd1201 *zd = urb->context;
        netif_wake_queue(zd->dev);
@@ -183,7 +184,7 @@
 }
 
 /* Incomming data */
-void zd1201_usbrx(struct urb *urb, struct pt_regs *regs)
+static void zd1201_usbrx(struct urb *urb, struct pt_regs *regs)
 {
        struct zd1201 *zd = urb->context;
        int free = 0;
@@ -613,7 +614,7 @@
        return (zd1201_setconfig(zd, rid, &zdval, sizeof(__le16), 1));
 }
 
-int zd1201_drvr_start(struct zd1201 *zd)
+static int zd1201_drvr_start(struct zd1201 *zd)
 {
        int err, i;
        short max;
@@ -1739,7 +1740,8 @@
        .private_args           = (struct iw_priv_args *) zd1201_private_args,
 };
 
-int zd1201_probe(struct usb_interface *interface, const struct usb_device_id 
*id)
+static int zd1201_probe(struct usb_interface *interface,
+                       const struct usb_device_id *id)
 {
        struct zd1201 *zd;
        struct usb_device *usb;
@@ -1851,7 +1853,7 @@
        return err;
 }
 
-void zd1201_disconnect(struct usb_interface *interface)
+static void zd1201_disconnect(struct usb_interface *interface)
 {
        struct zd1201 *zd=(struct zd1201 *)usb_get_intfdata(interface);
        struct hlist_node *node, *node2;
@@ -1882,7 +1884,7 @@
        kfree(zd);
 }
 
-struct usb_driver zd1201_usb = {
+static struct usb_driver zd1201_usb = {
        .owner = THIS_MODULE,
        .name = "zd1201",
        .probe = zd1201_probe,



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
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