From: Adrian Bunk <bunk@stusta.de>
To: gregkh@suse.de
Cc: linux-usb-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org
Subject: [2.6 patch] drivers/usb/serial/: make some functions static
Date: Tue, 1 Mar 2005 01:39:35 +0100 [thread overview]
Message-ID: <20050301003935.GC4021@stusta.de> (raw)
This patch makes some needlessly global functions static.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
---
drivers/usb/serial/ftdi_sio.c | 12 +++++++-----
drivers/usb/serial/garmin_gps.c | 4 ++--
drivers/usb/serial/ipw.c | 4 ++--
3 files changed, 11 insertions(+), 9 deletions(-)
--- linux-2.6.11-rc4-mm1-full/drivers/usb/serial/ftdi_sio.c.old 2005-02-28 23:31:03.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/usb/serial/ftdi_sio.c 2005-02-28 23:32:13.000000000 +0100
@@ -1187,7 +1187,7 @@
* ***************************************************************************
*/
-ssize_t show_latency_timer(struct device *dev, char *buf)
+static ssize_t show_latency_timer(struct device *dev, char *buf)
{
struct usb_serial_port *port = to_usb_serial_port(dev);
struct ftdi_private *priv = usb_get_serial_port_data(port);
@@ -1214,7 +1214,8 @@
}
/* Write a new value of the latency timer, in units of milliseconds. */
-ssize_t store_latency_timer(struct device *dev, const char *valbuf, size_t count)
+static ssize_t store_latency_timer(struct device *dev, const char *valbuf,
+ size_t count)
{
struct usb_serial_port *port = to_usb_serial_port(dev);
struct ftdi_private *priv = usb_get_serial_port_data(port);
@@ -1244,7 +1245,8 @@
/* Write an event character directly to the FTDI register. The ASCII
value is in the low 8 bits, with the enable bit in the 9th bit. */
-ssize_t store_event_char(struct device *dev, const char *valbuf, size_t count)
+static ssize_t store_event_char(struct device *dev, const char *valbuf,
+ size_t count)
{
struct usb_serial_port *port = to_usb_serial_port(dev);
struct ftdi_private *priv = usb_get_serial_port_data(port);
@@ -1275,7 +1277,7 @@
static DEVICE_ATTR(latency_timer, S_IWUGO | S_IRUGO, show_latency_timer, store_latency_timer);
static DEVICE_ATTR(event_char, S_IWUGO, NULL, store_event_char);
-void create_sysfs_attrs(struct usb_serial *serial)
+static void create_sysfs_attrs(struct usb_serial *serial)
{
struct ftdi_private *priv;
struct usb_device *udev;
@@ -1292,7 +1294,7 @@
}
}
-void remove_sysfs_attrs(struct usb_serial *serial)
+static void remove_sysfs_attrs(struct usb_serial *serial)
{
struct ftdi_private *priv;
struct usb_device *udev;
--- linux-2.6.11-rc4-mm1-full/drivers/usb/serial/garmin_gps.c.old 2005-02-28 23:32:28.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/usb/serial/garmin_gps.c 2005-02-28 23:32:50.000000000 +0100
@@ -614,8 +614,8 @@
*
* return <0 on error, 0 if packet is incomplete or > 0 if packet was sent
*/
-int gsp_send(struct garmin_data * garmin_data_p, const unsigned char *buf,
- int count)
+static int gsp_send(struct garmin_data * garmin_data_p,
+ const unsigned char *buf, int count)
{
const unsigned char *src;
unsigned char *dst;
--- linux-2.6.11-rc4-mm1-full/drivers/usb/serial/ipw.c.old 2005-02-28 23:33:10.000000000 +0100
+++ linux-2.6.11-rc4-mm1-full/drivers/usb/serial/ipw.c 2005-02-28 23:33:43.000000000 +0100
@@ -457,7 +457,7 @@
-int usb_ipw_init(void)
+static int usb_ipw_init(void)
{
int retval;
@@ -473,7 +473,7 @@
return 0;
}
-void usb_ipw_exit(void)
+static void usb_ipw_exit(void)
{
usb_deregister(&usb_ipw_driver);
usb_serial_deregister(&ipw_device);
next reply other threads:[~2005-03-01 0:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 0:39 Adrian Bunk [this message]
2005-03-18 1:17 ` [2.6 patch] drivers/usb/serial/: make some functions static Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050301003935.GC4021@stusta.de \
--to=bunk@stusta.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox