Skip to content

Commit

Permalink
USB: serial: metro-usb: remove function header comments
Browse files Browse the repository at this point in the history
They aren't needed, make the checkpatch tool unhappy, and in some
places, aren't even correct.  So just remove them, they get in the way
and are messy.

Cc: Aleksey Babahin <tamerlan311@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Mar 8, 2012
1 parent 9fbd164 commit dd63b0b
Showing 1 changed file with 0 additions and 110 deletions.
110 changes: 0 additions & 110 deletions drivers/usb/serial/metro-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,17 +56,6 @@ MODULE_DEVICE_TABLE(usb, id_table);
/* Input parameter constants. */
static bool debug;

/* ----------------------------------------------------------------------------------------------
Description:
Read the port from the read interrupt.
Input:
struct urb *: urb structure to get data.
struct pt_regs *: pt_regs structure.
Output:
None:
*/
static void metrousb_read_int_callback(struct urb *urb)
{
struct usb_serial_port *port = (struct usb_serial_port *)urb->context;
Expand Down Expand Up @@ -144,16 +133,6 @@ static void metrousb_read_int_callback(struct urb *urb)
}
}

/* ----------------------------------------------------------------------------------------------
Description:
Clean up any urbs and port information.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
Output:
int: Returns true (0) if successful, false otherwise.
*/
static void metrousb_cleanup(struct usb_serial_port *port)
{
dbg("METRO-USB - %s - port number=%d", __FUNCTION__, port->number);
Expand All @@ -167,17 +146,6 @@ static void metrousb_cleanup(struct usb_serial_port *port)
}
}

/* ----------------------------------------------------------------------------------------------
Description:
Open the drivers serial port.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
struct file *: pointer to a file structure.
Output:
int: Returns true (0) if successful, false otherwise.
*/
static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port)
{
struct usb_serial *serial = port->serial;
Expand Down Expand Up @@ -229,17 +197,6 @@ static int metrousb_open(struct tty_struct *tty, struct usb_serial_port *port)
return result;
}

/* ----------------------------------------------------------------------------------------------
Description:
Set the modem control state for the entered serial port.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
unsigned int: control state value to set.
Output:
int: Returns true (0) if successful, false otherwise.
*/
static int metrousb_set_modem_ctrl(struct usb_serial *serial, unsigned int control_state)
{
int retval = 0;
Expand All @@ -263,17 +220,6 @@ static int metrousb_set_modem_ctrl(struct usb_serial *serial, unsigned int contr
return retval;
}


/* ----------------------------------------------------------------------------------------------
Description:
Shutdown the driver.
Input:
struct usb_serial *: pointer to a usb-serial structure.
Output:
int: Returns true (0) if successful, false otherwise.
*/
static void metrousb_shutdown(struct usb_serial *serial)
{
int i = 0;
Expand All @@ -293,16 +239,6 @@ static void metrousb_shutdown(struct usb_serial *serial)
}
}

/* ----------------------------------------------------------------------------------------------
Description:
Startup the driver.
Input:
struct usb_serial *: pointer to a usb-serial structure.
Output:
int: Returns true (0) if successful, false otherwise.
*/
static int metrousb_startup(struct usb_serial *serial)
{
struct metrousb_private *metro_priv;
Expand Down Expand Up @@ -334,16 +270,6 @@ static int metrousb_startup(struct usb_serial *serial)
return 0;
}

/* ----------------------------------------------------------------------------------------------
Description:
Set the serial port throttle to stop reading from the port.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
Output:
None:
*/
static void metrousb_throttle(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
Expand All @@ -358,17 +284,6 @@ static void metrousb_throttle(struct tty_struct *tty)
spin_unlock_irqrestore(&metro_priv->lock, flags);
}

/* ----------------------------------------------------------------------------------------------
Description:
Get the serial port control line states.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
struct file *: pointer to a file structure.
Output:
int: Returns the state of the control lines.
*/
static int metrousb_tiocmget(struct tty_struct *tty)
{
unsigned long control_state = 0;
Expand All @@ -385,19 +300,6 @@ static int metrousb_tiocmget(struct tty_struct *tty)
return control_state;
}

/* ----------------------------------------------------------------------------------------------
Description:
Set the serial port control line states.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
struct file *: pointer to a file structure.
unsigned int: line state to set.
unsigned int: line state to clear.
Output:
int: Returns the state of the control lines.
*/
static int metrousb_tiocmset(struct tty_struct *tty,
unsigned int set, unsigned int clear)
{
Expand Down Expand Up @@ -427,16 +329,6 @@ static int metrousb_tiocmset(struct tty_struct *tty,
return metrousb_set_modem_ctrl(serial, control_state);
}

/* ----------------------------------------------------------------------------------------------
Description:
Set the serial port unthrottle to resume reading from the port.
Input:
struct usb_serial_port *: pointer to a usb_serial_port structure.
Output:
None:
*/
static void metrousb_unthrottle(struct tty_struct *tty)
{
struct usb_serial_port *port = tty->driver_data;
Expand All @@ -460,15 +352,13 @@ static void metrousb_unthrottle(struct tty_struct *tty)
}
}

/* Driver structure. */
static struct usb_driver metrousb_driver = {
.name = "metro-usb",
.probe = usb_serial_probe,
.disconnect = usb_serial_disconnect,
.id_table = id_table
};

/* Device structure. */
static struct usb_serial_driver metrousb_device = {
.driver = {
.owner = THIS_MODULE,
Expand Down

0 comments on commit dd63b0b

Please sign in to comment.