aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/belkin_sa.h
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2008-07-22 06:09:39 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-22 16:03:22 -0400
commitb69c14992ecbff99d1b2b66d8ccbcffe131c6e38 (patch)
tree9634bd935ca10f21751bdd4879b8823e17d8fc69 /drivers/usb/serial/belkin_sa.h
parent72e2741256e65f2adcc03754523d6a2fdb260e4a (diff)
belkin_sa: clean up code
Coding style tidy up for belkin_sa Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/serial/belkin_sa.h')
-rw-r--r--drivers/usb/serial/belkin_sa.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/usb/serial/belkin_sa.h b/drivers/usb/serial/belkin_sa.h
index 9116b92f4622..c66a6730d38c 100644
--- a/drivers/usb/serial/belkin_sa.h
+++ b/drivers/usb/serial/belkin_sa.h
@@ -7,13 +7,14 @@
7 * This program is largely derived from work by the linux-usb group 7 * This program is largely derived from work by the linux-usb group
8 * and associated source files. Please see the usb/serial files for 8 * and associated source files. Please see the usb/serial files for
9 * individual credits and copyrights. 9 * individual credits and copyrights.
10 * 10 *
11 * This program is free software; you can redistribute it and/or modify 11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by 12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or 13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version. 14 * (at your option) any later version.
15 * 15 *
16 * See Documentation/usb/usb-serial.txt for more information on using this driver 16 * See Documentation/usb/usb-serial.txt for more information on using this
17 * driver
17 * 18 *
18 * 12-Mar-2001 gkh 19 * 12-Mar-2001 gkh
19 * Added GoHubs GO-COM232 device id. 20 * Added GoHubs GO-COM232 device id.
@@ -27,7 +28,7 @@
27 * adapter, so pardon any stupid mistakes. All of the information 28 * adapter, so pardon any stupid mistakes. All of the information
28 * I am using to write this driver was acquired by using a modified 29 * I am using to write this driver was acquired by using a modified
29 * UsbSnoop on Windows2000. 30 * UsbSnoop on Windows2000.
30 * 31 *
31 */ 32 */
32 33
33#ifndef __LINUX_USB_SERIAL_BSA_H 34#ifndef __LINUX_USB_SERIAL_BSA_H
@@ -96,20 +97,20 @@
96 97
97/* 98/*
98 * It seems that the interrupt pipe is closely modelled after the 99 * It seems that the interrupt pipe is closely modelled after the
99 * 16550 register layout. This is probably because the adapter can 100 * 16550 register layout. This is probably because the adapter can
100 * be used in a "DOS" environment to simulate a standard hardware port. 101 * be used in a "DOS" environment to simulate a standard hardware port.
101 */ 102 */
102#define BELKIN_SA_LSR_INDEX 2 /* Line Status Register */ 103#define BELKIN_SA_LSR_INDEX 2 /* Line Status Register */
103#define BELKIN_SA_LSR_RDR 0x01 /* receive data ready */ 104#define BELKIN_SA_LSR_RDR 0x01 /* receive data ready */
104#define BELKIN_SA_LSR_OE 0x02 /* overrun error */ 105#define BELKIN_SA_LSR_OE 0x02 /* overrun error */
105#define BELKIN_SA_LSR_PE 0x04 /* parity error */ 106#define BELKIN_SA_LSR_PE 0x04 /* parity error */
106#define BELKIN_SA_LSR_FE 0x08 /* framing error */ 107#define BELKIN_SA_LSR_FE 0x08 /* framing error */
107#define BELKIN_SA_LSR_BI 0x10 /* break indicator */ 108#define BELKIN_SA_LSR_BI 0x10 /* break indicator */
108#define BELKIN_SA_LSR_THE 0x20 /* transmit holding register empty */ 109#define BELKIN_SA_LSR_THE 0x20 /* tx holding register empty */
109#define BELKIN_SA_LSR_TE 0x40 /* transmit register empty */ 110#define BELKIN_SA_LSR_TE 0x40 /* transmit register empty */
110#define BELKIN_SA_LSR_ERR 0x80 /* OE | PE | FE | BI */ 111#define BELKIN_SA_LSR_ERR 0x80 /* OE | PE | FE | BI */
111 112
112#define BELKIN_SA_MSR_INDEX 3 /* Modem Status Register */ 113#define BELKIN_SA_MSR_INDEX 3 /* Modem Status Register */
113#define BELKIN_SA_MSR_DCTS 0x01 /* Delta CTS */ 114#define BELKIN_SA_MSR_DCTS 0x01 /* Delta CTS */
114#define BELKIN_SA_MSR_DDSR 0x02 /* Delta DSR */ 115#define BELKIN_SA_MSR_DDSR 0x02 /* Delta DSR */
115#define BELKIN_SA_MSR_DRI 0x04 /* Delta RI */ 116#define BELKIN_SA_MSR_DRI 0x04 /* Delta RI */