Hi!
Vojtech, you are maintainer; would you apply these cleanups?
--- clean/drivers/usb/acm.c Tue Jun 5 21:37:59 2001
+++ linux/drivers/usb/acm.c Tue Jun 12 23:51:38 2001
@@ -125,10 +125,10 @@
*/
struct acm_line {
- __u32 speed;
- __u8 stopbits;
- __u8 parity;
- __u8 databits;
+ u32 speed;
+ u8 stopbits;
+ u8 parity;
+ u8 databits;
} __attribute__ ((packed));
/*
@@ -215,7 +215,7 @@
dbg("input control lines: dcd%c dsr%c break%c ring%c framing%c
parity%c overrun%c",
acm->ctrlin & ACM_CTRL_DCD ? '+' : '-', acm->ctrlin &
ACM_CTRL_DSR ? '+' : '-',
acm->ctrlin & ACM_CTRL_BRK ? '+' : '-', acm->ctrlin &
ACM_CTRL_RI ? '+' : '-',
- acm->ctrlin & ACM_CTRL_FRAMING ? '+' : '-',
acm->ctrlin & ACM_CTRL_PARITY ? '+' : '-',
+ acm->ctrlin & ACM_CTRL_FRAMING ? '+' : '-',
+acm->ctrlin & ACM_CTRL_PARITY ? '+' : '-',
acm->ctrlin & ACM_CTRL_OVERRUN ? '+' : '-');
return;
@@ -447,7 +447,7 @@
return -ENOIOCTLCMD;
}
-static __u32 acm_tty_speed[] = {
+static u32 acm_tty_speed[] = {
0, 50, 75, 110, 134, 150, 200, 300, 600,
1200, 1800, 2400, 4800, 9600, 19200, 38400,
57600, 115200, 230400, 460800, 500000, 576000,
@@ -517,22 +517,22 @@
usb_interface_claimed(cfacm->interface + 1))
continue;
- ifcom = cfacm->interface[0].altsetting + 0;
- ifdata = cfacm->interface[1].altsetting + 0;
+ ifcom = cfacm->interface[0].altsetting;
+ ifdata = cfacm->interface[1].altsetting;
if (ifdata->bInterfaceClass != 10 || ifdata->bNumEndpoints < 2) {
- ifcom = cfacm->interface[1].altsetting + 0;
- ifdata = cfacm->interface[0].altsetting + 0;
- if (ifdata->bInterfaceClass != 10 || ifdata->bNumEndpoints < 2)
- continue;
+ ifcom = cfacm->interface[1].altsetting;
+ ifdata = cfacm->interface[0].altsetting;
}
+ if (ifdata->bInterfaceClass != 10 || ifdata->bNumEndpoints < 2)
+ continue;
if (ifcom->bInterfaceClass != 2 || ifcom->bInterfaceSubClass != 2 ||
ifcom->bInterfaceProtocol != 1 || ifcom->bNumEndpoints < 1)
continue;
- epctrl = ifcom->endpoint + 0;
- epread = ifdata->endpoint + 0;
+ epctrl = ifcom->endpoint;
+ epread = ifdata->endpoint;
epwrite = ifdata->endpoint + 1;
if ((epctrl->bEndpointAddress & 0x80) != 0x80 || (epctrl->bmAttributes
& 3) != 3 ||
--- clean/drivers/usb/printer.c Tue Jun 5 21:38:00 2001
+++ linux/drivers/usb/printer.c Tue Jun 12 23:53:04 2001
@@ -107,8 +107,8 @@
/* Quirks: various printer quirks are handled by this table & its flags. */
struct quirk_printer_struct {
- __u16 vendorId;
- __u16 productId;
+ u16 vendorId;
+ u16 productId;
unsigned int quirks;
};
--
I'm [EMAIL PROTECTED] "In my country we have almost anarchy and I don't care."
Panos Katsaloulis describing me w.r.t. patents at [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel