Commit ef2af122 authored by Bernd Bassimir's avatar Bernd Bassimir Committed by Greg Kroah-Hartman

staging: serqt_usb2: lines over 80 characters fixed

Changed name of one variable, so that all lines are now below 80
characters.
Signed-off-by: default avatarBernd Bassimir <bassimir.kernel@gmx.de>
Signed-off-by: default avatarNico Doerr <nico.doerr@hawo.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d68edc28
...@@ -513,14 +513,14 @@ static int qt_set_device(struct usb_serial *serial, ...@@ -513,14 +513,14 @@ static int qt_set_device(struct usb_serial *serial,
return result; return result;
} }
static int qt_open_channel(struct usb_serial *serial, __u16 uart_number, static int qt_open_channel(struct usb_serial *serial, __u16 uart_num,
struct qt_open_channel_data *pdevice_data) struct qt_open_channel_data *pdevice_data)
{ {
int result; int result;
result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
QT_OPEN_CLOSE_CHANNEL, QT_OPEN_CLOSE_CHANNEL,
USBD_TRANSFER_DIRECTION_IN, 1, uart_number, USBD_TRANSFER_DIRECTION_IN, 1, uart_num,
pdevice_data, pdevice_data,
sizeof(struct qt_open_channel_data), 300); sizeof(struct qt_open_channel_data), 300);
...@@ -528,13 +528,13 @@ static int qt_open_channel(struct usb_serial *serial, __u16 uart_number, ...@@ -528,13 +528,13 @@ static int qt_open_channel(struct usb_serial *serial, __u16 uart_number,
} }
static int qt_close_channel(struct usb_serial *serial, __u16 uart_number) static int qt_close_channel(struct usb_serial *serial, __u16 uart_num)
{ {
int result; int result;
result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), result = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
QT_OPEN_CLOSE_CHANNEL, QT_OPEN_CLOSE_CHANNEL,
USBD_TRANSFER_DIRECTION_OUT, 0, uart_number, USBD_TRANSFER_DIRECTION_OUT, 0, uart_num,
NULL, 0, 300); NULL, 0, 300);
return result; return result;
...@@ -546,7 +546,7 @@ static int qt_close_channel(struct usb_serial *serial, __u16 uart_number) ...@@ -546,7 +546,7 @@ static int qt_close_channel(struct usb_serial *serial, __u16 uart_number)
* issuse a GET_REGISTER vendor-spcific request on the default control pipe * issuse a GET_REGISTER vendor-spcific request on the default control pipe
* If successful, fills in the p_value with the register value asked for * If successful, fills in the p_value with the register value asked for
****************************************************************************/ ****************************************************************************/
static int box_get_register(struct usb_serial *serial, unsigned short uart_number, static int box_get_register(struct usb_serial *serial, unsigned short uart_num,
unsigned short register_num, __u8 *p_value) unsigned short register_num, __u8 *p_value)
{ {
int result; int result;
...@@ -557,7 +557,7 @@ static int box_get_register(struct usb_serial *serial, unsigned short uart_numbe ...@@ -557,7 +557,7 @@ static int box_get_register(struct usb_serial *serial, unsigned short uart_numbe
result = result =
usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0), usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
QT_GET_SET_REGISTER, 0xC0, register_num, QT_GET_SET_REGISTER, 0xC0, register_num,
uart_number, (void *)p_value, sizeof(*p_value), 300); uart_num, (void *)p_value, sizeof(*p_value), 300);
return result; return result;
} }
...@@ -567,7 +567,7 @@ static int box_get_register(struct usb_serial *serial, unsigned short uart_numbe ...@@ -567,7 +567,7 @@ static int box_get_register(struct usb_serial *serial, unsigned short uart_numbe
* issuse a GET_REGISTER vendor-spcific request on the default control pipe * issuse a GET_REGISTER vendor-spcific request on the default control pipe
* If successful, fills in the p_value with the register value asked for * If successful, fills in the p_value with the register value asked for
****************************************************************************/ ****************************************************************************/
static int box_set_register(struct usb_serial *serial, unsigned short uart_number, static int box_set_register(struct usb_serial *serial, unsigned short uart_num,
unsigned short register_num, unsigned short value) unsigned short register_num, unsigned short value)
{ {
int result; int result;
...@@ -580,12 +580,12 @@ static int box_set_register(struct usb_serial *serial, unsigned short uart_numbe ...@@ -580,12 +580,12 @@ static int box_set_register(struct usb_serial *serial, unsigned short uart_numbe
/* /*
result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), result = usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
QT_GET_SET_REGISTER, 0xC0, register_num, QT_GET_SET_REGISTER, 0xC0, register_num,
uart_number, NULL, 0, 300); uart_num, NULL, 0, 300);
*/ */
result = result =
usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
QT_GET_SET_REGISTER, 0x40, reg_and_byte, uart_number, QT_GET_SET_REGISTER, 0x40, reg_and_byte, uart_num,
NULL, 0, 300); NULL, 0, 300);
return result; return result;
...@@ -596,13 +596,13 @@ static int box_set_register(struct usb_serial *serial, unsigned short uart_numbe ...@@ -596,13 +596,13 @@ static int box_set_register(struct usb_serial *serial, unsigned short uart_numbe
* issues a SET_UART vendor-specific request on the default control pipe * issues a SET_UART vendor-specific request on the default control pipe
* If successful sets baud rate divisor and LCR value * If successful sets baud rate divisor and LCR value
*/ */
static int qt_setuart(struct usb_serial *serial, unsigned short uart_number, static int qt_setuart(struct usb_serial *serial, unsigned short uart_num,
unsigned short default_divisor, unsigned char default_lcr) unsigned short default_divisor, unsigned char default_lcr)
{ {
int result; int result;
unsigned short uart_num_and_lcr; unsigned short uart_num_and_lcr;
uart_num_and_lcr = (default_lcr << 8) + uart_number; uart_num_and_lcr = (default_lcr << 8) + uart_num;
result = result =
usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment