ChangeSet 1.2181.4.88, 2005/03/29 21:15:53-08:00, [EMAIL PROTECTED]
[PATCH] USB: mark functions static in the cp2101 driver.
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
cp2101.c | 24 +++++++++++-------------
1 files changed, 11 insertions(+), 13 deletions(-)
diff -Nru a/drivers/usb/serial/cp2101.c b/drivers/usb/serial/cp2101.c
--- a/drivers/usb/serial/cp2101.c 2005-03-30 15:22:48 -08:00
+++ b/drivers/usb/serial/cp2101.c 2005-03-30 15:22:48 -08:00
@@ -30,16 +30,14 @@
/*
* Function Prototypes
*/
-int cp2101_get_config(struct usb_serial_port*, u8);
-int cp2101_set_config(struct usb_serial_port*, u8, u16);
-int cp2101_open(struct usb_serial_port*, struct file*);
+static int cp2101_open(struct usb_serial_port*, struct file*);
static void cp2101_cleanup(struct usb_serial_port*);
-void cp2101_close(struct usb_serial_port*, struct file*);
-void cp2101_get_termios(struct usb_serial_port*);
+static void cp2101_close(struct usb_serial_port*, struct file*);
+static void cp2101_get_termios(struct usb_serial_port*);
static void cp2101_set_termios(struct usb_serial_port*, struct termios*);
static void cp2101_break_ctl(struct usb_serial_port*, int);
static int cp2101_startup (struct usb_serial *);
-void cp2101_shutdown(struct usb_serial*);
+static void cp2101_shutdown(struct usb_serial*);
static int debug;
@@ -60,7 +58,7 @@
.id_table = id_table,
};
-struct usb_serial_device_type cp2101_device = {
+static struct usb_serial_device_type cp2101_device = {
.owner = THIS_MODULE,
.name = "CP2101",
.id_table = id_table,
@@ -118,7 +116,7 @@
#define BREAK_OFF 0x0001
-int cp2101_get_config(struct usb_serial_port* port, u8 request)
+static int cp2101_get_config(struct usb_serial_port* port, u8 request)
{
struct usb_serial *serial = port->serial;
unsigned char buf[4];
@@ -151,7 +149,7 @@
return value;
}
-int cp2101_set_config(struct usb_serial_port* port, u8 request, u16 value)
+static int cp2101_set_config(struct usb_serial_port* port, u8 request, u16
value)
{
struct usb_serial *serial = port->serial;
int result;
@@ -172,7 +170,7 @@
return 0;
}
-int cp2101_open (struct usb_serial_port *port, struct file *filp)
+static int cp2101_open (struct usb_serial_port *port, struct file *filp)
{
struct usb_serial *serial = port->serial;
int result;
@@ -221,7 +219,7 @@
}
}
-void cp2101_close (struct usb_serial_port *port, struct file * filp)
+static void cp2101_close (struct usb_serial_port *port, struct file * filp)
{
dbg("%s - port %d", __FUNCTION__, port->number);
@@ -237,7 +235,7 @@
/* Reads the baud rate, data bits, parity and stop bits from the device*/
/* Corrects any unsupported values*/
/* Configures the termios structure to reflect the state of the device*/
-void cp2101_get_termios (struct usb_serial_port *port)
+static void cp2101_get_termios (struct usb_serial_port *port)
{
unsigned int cflag;
int baud;
@@ -544,7 +542,7 @@
return 0;
}
-void cp2101_shutdown (struct usb_serial *serial)
+static void cp2101_shutdown (struct usb_serial *serial)
{
int i;
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html