diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-19 05:13:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-19 13:23:12 -0500 |
commit | 8f24c4905cdc86f9ecef1c2690950b219681e749 (patch) | |
tree | c0b42b9065faf88be50ffc9c864a3dd83bdf2c5c /drivers/usb/serial | |
parent | ff4708e69a633912c5c8e055fc399bf356d7a784 (diff) |
drivers: usb: Mark function as static in metro-usb.c
Mark function metrousb_is_unidirectional_mode() in serial/metro-usb.c
because it is not used outside this file.
This eliminates the following warning in serial/metro-usb.c:
drivers/usb/serial/metro-usb.c:57:12: warning: no previous prototype for ‘metrousb_is_unidirectional_mode’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r-- | drivers/usb/serial/metro-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/metro-usb.c b/drivers/usb/serial/metro-usb.c index 40ccf6e5e318..2b648c41f4e7 100644 --- a/drivers/usb/serial/metro-usb.c +++ b/drivers/usb/serial/metro-usb.c | |||
@@ -54,7 +54,7 @@ MODULE_DEVICE_TABLE(usb, id_table); | |||
54 | #define UNI_CMD_OPEN 0x80 | 54 | #define UNI_CMD_OPEN 0x80 |
55 | #define UNI_CMD_CLOSE 0xFF | 55 | #define UNI_CMD_CLOSE 0xFF |
56 | 56 | ||
57 | inline int metrousb_is_unidirectional_mode(struct usb_serial_port *port) | 57 | static inline int metrousb_is_unidirectional_mode(struct usb_serial_port *port) |
58 | { | 58 | { |
59 | __u16 product_id = le16_to_cpu( | 59 | __u16 product_id = le16_to_cpu( |
60 | port->serial->dev->descriptor.idProduct); | 60 | port->serial->dev->descriptor.idProduct); |