aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-09-09 16:25:04 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:55:29 -0400
commit93b6497da99978742ffa9d9db6177397436278f5 (patch)
treee6a14551af1c69fcb95fd6f76ad7065500564c4b /drivers/usb/serial
parent6ce76104781a10554129791dc62c3104424f6d48 (diff)
USB: usb/serial/ch341.c: make 4 functions static
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>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/ch341.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c
index eb681069e24e..6b252ceb39a8 100644
--- a/drivers/usb/serial/ch341.c
+++ b/drivers/usb/serial/ch341.c
@@ -66,7 +66,8 @@ static int ch341_control_in(struct usb_device *dev,
66 return r; 66 return r;
67} 67}
68 68
69int ch341_set_baudrate(struct usb_device *dev, struct ch341_private *priv) 69static int ch341_set_baudrate(struct usb_device *dev,
70 struct ch341_private *priv)
70{ 71{
71 short a, b; 72 short a, b;
72 int r; 73 int r;
@@ -108,14 +109,15 @@ int ch341_set_baudrate(struct usb_device *dev, struct ch341_private *priv)
108 return r; 109 return r;
109} 110}
110 111
111int ch341_set_handshake(struct usb_device *dev, struct ch341_private *priv) 112static int ch341_set_handshake(struct usb_device *dev,
113 struct ch341_private *priv)
112{ 114{
113 dbg("ch341_set_handshake(%d,%d)", priv->dtr, priv->rts); 115 dbg("ch341_set_handshake(%d,%d)", priv->dtr, priv->rts);
114 return ch341_control_out(dev, 0xa4, 116 return ch341_control_out(dev, 0xa4,
115 ~((priv->dtr?1<<5:0)|(priv->rts?1<<6:0)), 0); 117 ~((priv->dtr?1<<5:0)|(priv->rts?1<<6:0)), 0);
116} 118}
117 119
118int ch341_get_status(struct usb_device *dev) 120static int ch341_get_status(struct usb_device *dev)
119{ 121{
120 char *buffer; 122 char *buffer;
121 int r; 123 int r;
@@ -142,7 +144,7 @@ out: kfree(buffer);
142 144
143/* -------------------------------------------------------------------------- */ 145/* -------------------------------------------------------------------------- */
144 146
145int ch341_configure(struct usb_device *dev, struct ch341_private *priv) 147static int ch341_configure(struct usb_device *dev, struct ch341_private *priv)
146{ 148{
147 char *buffer; 149 char *buffer;
148 int r; 150 int r;