Commit cb2d3c24 authored by Steven Cole's avatar Steven Cole Committed by Greg Kroah-Hartman

[PATCH] USB: spelling fixes for drivers/usb

This spelling and typo cleanup patch was reviewed by Mike Hayes and
Jared Daniel J. Smith.
parent 6f224290
...@@ -168,7 +168,7 @@ struct usb_bluetooth { ...@@ -168,7 +168,7 @@ struct usb_bluetooth {
int magic; int magic;
struct usb_device * dev; struct usb_device * dev;
struct tty_driver * tty_driver; /* the tty_driver for this device */ struct tty_driver * tty_driver; /* the tty_driver for this device */
struct tty_struct * tty; /* the coresponding tty for this port */ struct tty_struct * tty; /* the corresponding tty for this port */
unsigned char minor; /* the starting minor number for this device */ unsigned char minor; /* the starting minor number for this device */
int throttle; /* throttled by tty layer */ int throttle; /* throttled by tty layer */
...@@ -1328,7 +1328,7 @@ int usb_bluetooth_init(void) ...@@ -1328,7 +1328,7 @@ int usb_bluetooth_init(void)
int i; int i;
int result; int result;
/* Initalize our global data */ /* Initialize our global data */
for (i = 0; i < BLUETOOTH_TTY_MINORS; ++i) { for (i = 0; i < BLUETOOTH_TTY_MINORS; ++i) {
bluetooth_table[i] = NULL; bluetooth_table[i] = NULL;
} }
......
...@@ -138,9 +138,9 @@ struct acm_line { ...@@ -138,9 +138,9 @@ struct acm_line {
*/ */
struct acm { struct acm {
struct usb_device *dev; /* the coresponding usb device */ struct usb_device *dev; /* the corresponding usb device */
struct usb_interface *iface; /* the interfaces - +0 control +1 data */ struct usb_interface *iface; /* the interfaces - +0 control +1 data */
struct tty_struct *tty; /* the coresponding tty */ struct tty_struct *tty; /* the corresponding tty */
struct urb *ctrlurb, *readurb, *writeurb; /* urbs */ struct urb *ctrlurb, *readurb, *writeurb; /* urbs */
struct acm_line line; /* line coding (bits, stop, parity) */ struct acm_line line; /* line coding (bits, stop, parity) */
struct work_struct work; /* work queue entry for line discipline waking up */ struct work_struct work; /* work queue entry for line discipline waking up */
......
...@@ -1270,7 +1270,7 @@ static void *find_descriptor( void *descStart, unsigned int descLength, void *af ...@@ -1270,7 +1270,7 @@ static void *find_descriptor( void *descStart, unsigned int descLength, void *af
return NULL; return NULL;
} }
/** Utility to find a class-specfic interface descriptor. /** Utility to find a class-specific interface descriptor.
* dsubtype is a descriptor subtype * dsubtype is a descriptor subtype
* Called by parseDescriptor(); * Called by parseDescriptor();
**/ **/
......
...@@ -516,7 +516,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id) ...@@ -516,7 +516,7 @@ static int hub_probe(struct usb_interface *intf, const struct usb_device_id *id)
endpoint = &desc->endpoint[0].desc; endpoint = &desc->endpoint[0].desc;
/* Output endpoint? Curiousier and curiousier.. */ /* Output endpoint? Curiouser and curiouser.. */
if (!(endpoint->bEndpointAddress & USB_DIR_IN)) { if (!(endpoint->bEndpointAddress & USB_DIR_IN)) {
goto descriptor_error; goto descriptor_error;
} }
...@@ -958,7 +958,7 @@ static void usb_hub_events(void) ...@@ -958,7 +958,7 @@ static void usb_hub_events(void)
int i, ret; int i, ret;
/* /*
* We restart the list everytime to avoid a deadlock with * We restart the list every time to avoid a deadlock with
* deleting hubs downstream from this one. This should be * deleting hubs downstream from this one. This should be
* safe since we delete the hub from the event list. * safe since we delete the hub from the event list.
* Not the most efficient, but avoids deadlocks. * Not the most efficient, but avoids deadlocks.
......
...@@ -69,7 +69,7 @@ void usb_free_urb(struct urb *urb) ...@@ -69,7 +69,7 @@ void usb_free_urb(struct urb *urb)
* usb_get_urb - increments the reference count of the urb * usb_get_urb - increments the reference count of the urb
* @urb: pointer to the urb to modify * @urb: pointer to the urb to modify
* *
* This must be called whenever a urb is transfered from a device driver to a * This must be called whenever a urb is transferred from a device driver to a
* host controller driver. This allows proper reference counting to happen * host controller driver. This allows proper reference counting to happen
* for urbs. * for urbs.
* *
......
...@@ -605,7 +605,7 @@ static struct urb *qu_return_urb (hci_t * hci, struct urb * urb, int resub_ok) ...@@ -605,7 +605,7 @@ static struct urb *qu_return_urb (hci_t * hci, struct urb * urb, int resub_ok)
/*************************************************************************** /***************************************************************************
* Function Name : sh_scan_iso_urb_list * Function Name : sh_scan_iso_urb_list
* *
* This function goes throught the isochronous urb list and schedule the * This function goes through the isochronous urb list and schedule the
* the transfer. * the transfer.
* *
* Note: This function has not tested yet * Note: This function has not tested yet
......
...@@ -44,8 +44,8 @@ struct virt_root_hub { ...@@ -44,8 +44,8 @@ struct virt_root_hub {
int devnum; /* Address of Root Hub endpoint */ int devnum; /* Address of Root Hub endpoint */
void *urb; /* interrupt URB of root hub */ void *urb; /* interrupt URB of root hub */
int send; /* active flag */ int send; /* active flag */
int interval; /* intervall of roothub interrupt transfers */ int interval; /* interval of roothub interrupt transfers */
struct timer_list rh_int_timer; /* intervall timer for rh interrupt EP */ struct timer_list rh_int_timer; /* interval timer for rh interrupt EP */
}; };
#if 1 #if 1
......
...@@ -368,7 +368,7 @@ struct hci; ...@@ -368,7 +368,7 @@ struct hci;
#define SL11H_CTL1VAL_RESET 8 #define SL11H_CTL1VAL_RESET 8
/* Interrut enable (addr 6) and interrupt status register bits (addr 0xD) */ /* Interrupt enable (addr 6) and interrupt status register bits (addr 0xD) */
#define SL11H_INTMASK_XFERDONE 1 #define SL11H_INTMASK_XFERDONE 1
#define SL11H_INTMASK_SOFINTR 0x10 #define SL11H_INTMASK_SOFINTR 0x10
#define SL11H_INTMASK_INSRMV 0x20 #define SL11H_INTMASK_INSRMV 0x20
......
...@@ -303,7 +303,7 @@ static int hpusbscsi_scsi_queuecommand (Scsi_Cmnd *srb, scsi_callback callback) ...@@ -303,7 +303,7 @@ static int hpusbscsi_scsi_queuecommand (Scsi_Cmnd *srb, scsi_callback callback)
} else { } else {
usb_callback = simple_payload_callback; usb_callback = simple_payload_callback;
} }
/* Now we find out which direction data is to be transfered in */ /* Now we find out which direction data is to be transferred in */
hpusbscsi->current_data_pipe = DIRECTION_IS_IN(srb->cmnd[0]) ? hpusbscsi->current_data_pipe = DIRECTION_IS_IN(srb->cmnd[0]) ?
usb_rcvbulkpipe(hpusbscsi->dev, hpusbscsi->ep_in) usb_rcvbulkpipe(hpusbscsi->dev, hpusbscsi->ep_in)
: :
...@@ -410,7 +410,7 @@ DEBUG("Getting status byte %d \n",hpusbscsi->scsi_state_byte); ...@@ -410,7 +410,7 @@ DEBUG("Getting status byte %d \n",hpusbscsi->scsi_state_byte);
} }
if (hpusbscsi->scallback != NULL && hpusbscsi->state == HP_STATE_WAIT && scsi_state != CHECK_CONDITION <<1 ) if (hpusbscsi->scallback != NULL && hpusbscsi->state == HP_STATE_WAIT && scsi_state != CHECK_CONDITION <<1 )
/* we do a callback to the scsi layer if and only if all data has been transfered */ /* we do a callback to the scsi layer if and only if all data has been transferred */
hpusbscsi->scallback(hpusbscsi->srb); hpusbscsi->scallback(hpusbscsi->srb);
TRACE_STATE; TRACE_STATE;
......
...@@ -85,7 +85,7 @@ static Scsi_Host_Template hpusbscsi_scsi_host_template = { ...@@ -85,7 +85,7 @@ static Scsi_Host_Template hpusbscsi_scsi_host_template = {
/* defines for internal driver state */ /* defines for internal driver state */
#define HP_STATE_FREE 0 /*ready for next request */ #define HP_STATE_FREE 0 /*ready for next request */
#define HP_STATE_BEGINNING 1 /*command being transfered */ #define HP_STATE_BEGINNING 1 /*command being transferred */
#define HP_STATE_WORKING 2 /* data transfer stage */ #define HP_STATE_WORKING 2 /* data transfer stage */
#define HP_STATE_ERROR 3 /* error has been reported */ #define HP_STATE_ERROR 3 /* error has been reported */
#define HP_STATE_WAIT 4 /* waiting for status transfer */ #define HP_STATE_WAIT 4 /* waiting for status transfer */
......
...@@ -33,8 +33,8 @@ ...@@ -33,8 +33,8 @@
* 0.1 8/31/1999 * 0.1 8/31/1999
* *
* Developed/tested using linux-2.3.15 with minor ohci.c changes to * Developed/tested using linux-2.3.15 with minor ohci.c changes to
* support short packes during bulk xfer mode. Some testing was * support short packets during bulk xfer mode. Some testing was
* done with ohci-hcd but the performace was low. Very limited * done with ohci-hcd but the performance was low. Very limited
* testing was performed with uhci but I was unable to get it to * testing was performed with uhci but I was unable to get it to
* work. Initial relase to the linux-usb development effort. * work. Initial relase to the linux-usb development effort.
* *
...@@ -338,7 +338,7 @@ ...@@ -338,7 +338,7 @@
* Till Kamppeter <till.kamppeter@gmx.net> and others for all the ids. * Till Kamppeter <till.kamppeter@gmx.net> and others for all the ids.
* - Cleaned up list of vendor/product ids. * - Cleaned up list of vendor/product ids.
* - Print information about user-supplied ids only once at startup instead * - Print information about user-supplied ids only once at startup instead
* of everytime any USB device is plugged in. * of every time any USB device is plugged in.
* - Removed PV8630 ioctls. Use the standard ioctls instead. * - Removed PV8630 ioctls. Use the standard ioctls instead.
* - Made endpoint detection more generic. Basically, only one bulk-in * - Made endpoint detection more generic. Basically, only one bulk-in
* endpoint is required, everything else is optional. * endpoint is required, everything else is optional.
......
...@@ -954,7 +954,7 @@ void hid_output_report(struct hid_report *report, __u8 *data) ...@@ -954,7 +954,7 @@ void hid_output_report(struct hid_report *report, __u8 *data)
/* /*
* Set a field value. The report this field belongs to has to be * Set a field value. The report this field belongs to has to be
* created and transfered to the device, to set this value in the * created and transferred to the device, to set this value in the
* device. * device.
*/ */
......
...@@ -480,7 +480,7 @@ static void hidinput_close(struct input_dev *dev) ...@@ -480,7 +480,7 @@ static void hidinput_close(struct input_dev *dev)
/* /*
* Register the input device; print a message. * Register the input device; print a message.
* Configure the input layer interface * Configure the input layer interface
* Read all reports and initalize the absoulte field values. * Read all reports and initialize the absolute field values.
*/ */
int hidinput_connect(struct hid_device *hid) int hidinput_connect(struct hid_device *hid)
......
...@@ -209,8 +209,8 @@ struct hid_item { ...@@ -209,8 +209,8 @@ struct hid_item {
#define HID_QUIRK_BADPAD 0x20 #define HID_QUIRK_BADPAD 0x20
/* /*
* This is the global enviroment of the parser. This information is * This is the global environment of the parser. This information is
* persistent for main-items. The global enviroment can be saved and * persistent for main-items. The global environment can be saved and
* restored with PUSH/POP statements. * restored with PUSH/POP statements.
*/ */
...@@ -228,7 +228,7 @@ struct hid_global { ...@@ -228,7 +228,7 @@ struct hid_global {
}; };
/* /*
* This is the local enviroment. It is resistent up the next main-item. * This is the local environment. It is persistent up the next main-item.
*/ */
#define HID_MAX_DESCRIPTOR_SIZE 4096 #define HID_MAX_DESCRIPTOR_SIZE 4096
......
...@@ -65,7 +65,7 @@ static const int debug = 0; ...@@ -65,7 +65,7 @@ static const int debug = 0;
#endif #endif
/* Some default values for inital camera settings, /* Some default values for initial camera settings,
can be set by modprobe */ can be set by modprobe */
static enum frame_sizes size; static enum frame_sizes size;
......
...@@ -129,7 +129,7 @@ static struct Nala_table_entry Nala_table[PSZ_MAX][8] = ...@@ -129,7 +129,7 @@ static struct Nala_table_entry Nala_table[PSZ_MAX][8] =
4 compression modi: none, low, medium, high 4 compression modi: none, low, medium, high
When an uncompressed mode is not available, the next available compressed mode When an uncompressed mode is not available, the next available compressed mode
will be choosen (unless the decompressor is absent). Sometimes there are only will be chosen (unless the decompressor is absent). Sometimes there are only
1 or 2 compressed modes available; in that case entries are duplicated. 1 or 2 compressed modes available; in that case entries are duplicated.
*/ */
struct Timon_table_entry struct Timon_table_entry
......
...@@ -255,7 +255,7 @@ static int pwc_allocate_buffers(struct pwc_device *pdev) ...@@ -255,7 +255,7 @@ static int pwc_allocate_buffers(struct pwc_device *pdev)
return -ENXIO; return -ENXIO;
} }
#endif #endif
/* Allocate Isochronuous pipe buffers */ /* Allocate Isochronous pipe buffers */
for (i = 0; i < MAX_ISO_BUFS; i++) { for (i = 0; i < MAX_ISO_BUFS; i++) {
if (pdev->sbuf[i].data == NULL) { if (pdev->sbuf[i].data == NULL) {
kbuf = kmalloc(ISO_BUFFER_SIZE, GFP_KERNEL); kbuf = kmalloc(ISO_BUFFER_SIZE, GFP_KERNEL);
...@@ -811,7 +811,7 @@ static int pwc_isoc_init(struct pwc_device *pdev) ...@@ -811,7 +811,7 @@ static int pwc_isoc_init(struct pwc_device *pdev)
if (pdev->vmax_packet_size < 0 || pdev->vmax_packet_size > ISO_MAX_FRAME_SIZE) { if (pdev->vmax_packet_size < 0 || pdev->vmax_packet_size > ISO_MAX_FRAME_SIZE) {
Err("Failed to find packet size for video endpoint in current alternate setting.\n"); Err("Failed to find packet size for video endpoint in current alternate setting.\n");
return -ENFILE; /* Odd error, that should be noticable */ return -ENFILE; /* Odd error, that should be noticeable */
} }
/* Set alternate interface */ /* Set alternate interface */
...@@ -2040,7 +2040,7 @@ static int __init usb_pwc_init(void) ...@@ -2040,7 +2040,7 @@ static int __init usb_pwc_init(void)
if (leds[1] >= 0) if (leds[1] >= 0)
led_off = leds[1]; led_off = leds[1];
/* Big device node whoopla. Basicly, it allows you to assign a /* Big device node whoopla. Basically, it allows you to assign a
device node (/dev/videoX) to a camera, based on its type device node (/dev/videoX) to a camera, based on its type
& serial number. The format is [type[.serialnumber]:]node. & serial number. The format is [type[.serialnumber]:]node.
......
...@@ -32,7 +32,7 @@ static LIST_HEAD(pwc_decompressor_list); ...@@ -32,7 +32,7 @@ static LIST_HEAD(pwc_decompressor_list);
/* Should the pwc_decompress structure ever change, we increase the /* Should the pwc_decompress structure ever change, we increase the
version number so that we don't get nasty surprises, or can version number so that we don't get nasty surprises, or can
dynamicly adjust our structure. dynamically adjust our structure.
*/ */
const int pwc_decompressor_version = PWC_MAJOR; const int pwc_decompressor_version = PWC_MAJOR;
......
...@@ -147,7 +147,7 @@ struct pwc_device ...@@ -147,7 +147,7 @@ struct pwc_device
2. data is synchronized and packed into a frame buffer 2. data is synchronized and packed into a frame buffer
3a. in case data is compressed, decompress it directly into image buffer 3a. in case data is compressed, decompress it directly into image buffer
3b. in case data is uncompressed, copy into image buffer with viewport 3b. in case data is uncompressed, copy into image buffer with viewport
4. data is transfered to the user process 4. data is transferred to the user process
Note that MAX_ISO_BUFS != MAX_FRAMES != MAX_IMAGES.... Note that MAX_ISO_BUFS != MAX_FRAMES != MAX_IMAGES....
We have in effect a back-to-back-double-buffer system. We have in effect a back-to-back-double-buffer system.
......
...@@ -692,7 +692,7 @@ static int se401_set_size(struct usb_se401 *se401, int width, int height) ...@@ -692,7 +692,7 @@ static int se401_set_size(struct usb_se401 *se401, int width, int height)
/* /*
This shouldn't really be done in a v4l driver.... This shouldn't really be done in a v4l driver....
But it does make the image look a lot more usable. But it does make the image look a lot more usable.
Basicly it lifts the dark pixels more than the light pixels. Basically it lifts the dark pixels more than the light pixels.
*/ */
static inline void enhance_picture(unsigned char *frame, int len) static inline void enhance_picture(unsigned char *frame, int len)
{ {
......
...@@ -531,7 +531,7 @@ vicam_ioctl(struct inode *inode, struct file *file, unsigned int ioctlnr, unsign ...@@ -531,7 +531,7 @@ vicam_ioctl(struct inode *inode, struct file *file, unsigned int ioctlnr, unsign
return -ENODEV; return -ENODEV;
switch (ioctlnr) { switch (ioctlnr) {
/* query capabilites */ /* query capabilities */
case VIDIOCGCAP: case VIDIOCGCAP:
{ {
struct video_capability b; struct video_capability b;
......
...@@ -687,10 +687,10 @@ static int auerchain_start_wait_urb (pauerchain_t acp, struct urb *urb, int time ...@@ -687,10 +687,10 @@ static int auerchain_start_wait_urb (pauerchain_t acp, struct urb *urb, int time
This function sends a simple control message to a specified endpoint This function sends a simple control message to a specified endpoint
and waits for the message to complete, or timeout. and waits for the message to complete, or timeout.
If successful, it returns the transfered length, othwise a negative error number. If successful, it returns the transferred length, otherwise a negative error number.
Don't use this function from within an interrupt context, like a Don't use this function from within an interrupt context, like a
bottom half handler. If you need a asyncronous message, or need to send bottom half handler. If you need an asynchronous message, or need to send
a message from within interrupt context, use auerchain_submit_urb() a message from within interrupt context, use auerchain_submit_urb()
*/ */
static int auerchain_control_msg (pauerchain_t acp, struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype, static int auerchain_control_msg (pauerchain_t acp, struct usb_device *dev, unsigned int pipe, __u8 request, __u8 requesttype,
...@@ -814,7 +814,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned ...@@ -814,7 +814,7 @@ static int auerbuf_setup (pauerbufctl_t bcp, unsigned int numElements, unsigned
} }
return 0; return 0;
bl_fail:/* not enought memory. Free allocated elements */ bl_fail:/* not enough memory. Free allocated elements */
dbg ("auerbuf_setup: no more memory"); dbg ("auerbuf_setup: no more memory");
auerbuf_free_buffers (bcp); auerbuf_free_buffers (bcp);
return -ENOMEM; return -ENOMEM;
...@@ -1083,7 +1083,7 @@ static void auerswald_int_complete (struct urb * urb, struct pt_regs *regs) ...@@ -1083,7 +1083,7 @@ static void auerswald_int_complete (struct urb * urb, struct pt_regs *regs)
/* can we do something more? /* can we do something more?
This is a big problem: if this int packet is ignored, the This is a big problem: if this int packet is ignored, the
device will wait forever and not signal any more data. device will wait forever and not signal any more data.
The only real solution is: having enought buffers! The only real solution is: having enough buffers!
Or perhaps temporary disabling the int endpoint? Or perhaps temporary disabling the int endpoint?
*/ */
goto exit; goto exit;
...@@ -1130,7 +1130,7 @@ static void auerswald_int_free (pauerswald_t cp) ...@@ -1130,7 +1130,7 @@ static void auerswald_int_free (pauerswald_t cp)
} }
/* This function is called to activate the interrupt /* This function is called to activate the interrupt
endpoint. This function returns 0 if successfull or an error code. endpoint. This function returns 0 if successful or an error code.
NOTE: no mutex please! NOTE: no mutex please!
*/ */
static int auerswald_int_open (pauerswald_t cp) static int auerswald_int_open (pauerswald_t cp)
...@@ -1181,7 +1181,7 @@ static int auerswald_int_open (pauerswald_t cp) ...@@ -1181,7 +1181,7 @@ static int auerswald_int_open (pauerswald_t cp)
} }
/* This function is called to deactivate the interrupt /* This function is called to deactivate the interrupt
endpoint. This function returns 0 if successfull or an error code. endpoint. This function returns 0 if successful or an error code.
NOTE: no mutex please! NOTE: no mutex please!
*/ */
static int auerswald_int_release (pauerswald_t cp) static int auerswald_int_release (pauerswald_t cp)
...@@ -1713,7 +1713,7 @@ static ssize_t auerchar_read (struct file *file, char *buf, size_t count, loff_t ...@@ -1713,7 +1713,7 @@ static ssize_t auerchar_read (struct file *file, char *buf, size_t count, loff_t
return -ERESTARTSYS; return -ERESTARTSYS;
} }
/* try to read the incomming data again */ /* try to read the incoming data again */
goto doreadlist; goto doreadlist;
} }
...@@ -2075,7 +2075,7 @@ pfail: auerswald_delete (cp); ...@@ -2075,7 +2075,7 @@ pfail: auerswald_delete (cp);
The argument dev specifies the device context and the driver_context The argument dev specifies the device context and the driver_context
returns a pointer to the previously registered driver_context of the returns a pointer to the previously registered driver_context of the
probe function. After returning from the disconnect function the USB probe function. After returning from the disconnect function the USB
framework completly deallocates all data structures associated with framework completely deallocates all data structures associated with
this device. So especially the usb_device structure must not be used this device. So especially the usb_device structure must not be used
any longer by the usb driver. any longer by the usb driver.
*/ */
......
...@@ -193,7 +193,7 @@ struct udsl_instance_data { ...@@ -193,7 +193,7 @@ struct udsl_instance_data {
static const char udsl_driver_name [] = "speedtch"; static const char udsl_driver_name [] = "speedtch";
/* /*
* atm driver prototypes and stuctures * atm driver prototypes and structures
*/ */
static void udsl_atm_dev_close (struct atm_dev *dev); static void udsl_atm_dev_close (struct atm_dev *dev);
......
...@@ -1707,7 +1707,7 @@ static int usbnet_stop (struct net_device *net) ...@@ -1707,7 +1707,7 @@ static int usbnet_stop (struct net_device *net)
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
// posts reads, and enables write queing // posts reads, and enables write queuing
// precondition: never called in_interrupt // precondition: never called in_interrupt
......
...@@ -215,7 +215,7 @@ static int belkin_sa_open (struct usb_serial_port *port, struct file *filp) ...@@ -215,7 +215,7 @@ static int belkin_sa_open (struct usb_serial_port *port, struct file *filp)
dbg("%s port %d", __FUNCTION__, port->number); dbg("%s port %d", __FUNCTION__, port->number);
/*Start reading from the device*/ /*Start reading from the device*/
/* TODO: Look at possibility of submitting mulitple URBs to device to /* TODO: Look at possibility of submitting multiple URBs to device to
* enhance buffering. Win trace shows 16 initial read URBs. * enhance buffering. Win trace shows 16 initial read URBs.
*/ */
port->read_urb->dev = port->serial->dev; port->read_urb->dev = port->serial->dev;
......
...@@ -302,7 +302,7 @@ static void cyberjack_read_int_callback( struct urb *urb, struct pt_regs *regs ) ...@@ -302,7 +302,7 @@ static void cyberjack_read_int_callback( struct urb *urb, struct pt_regs *regs )
short old_rdtodo = priv->rdtodo; short old_rdtodo = priv->rdtodo;
int result; int result;
/* This is a announcement of comming bulk_ins. */ /* This is a announcement of coming bulk_ins. */
unsigned short size = ((unsigned short)data[3]<<8)+data[2]+3; unsigned short size = ((unsigned short)data[3]<<8)+data[2]+3;
if( (size>259) || (size==0) ) { if( (size>259) || (size==0) ) {
......
...@@ -1086,7 +1086,7 @@ static int edge_open (struct usb_serial_port *port, struct file * filp) ...@@ -1086,7 +1086,7 @@ static int edge_open (struct usb_serial_port *port, struct file * filp)
return -ENODEV; return -ENODEV;
} }
/* now wait for the port to be completly opened */ /* now wait for the port to be completely opened */
timeout = OPEN_TIMEOUT; timeout = OPEN_TIMEOUT;
while (timeout && edge_port->openPending == TRUE) { while (timeout && edge_port->openPending == TRUE) {
timeout = interruptible_sleep_on_timeout (&edge_port->wait_open, timeout); timeout = interruptible_sleep_on_timeout (&edge_port->wait_open, timeout);
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
The data to and from all ports on the peripheral is multiplexed The data to and from all ports on the peripheral is multiplexed
through a single endpoint pair (EP1 since it supports 64-byte through a single endpoint pair (EP1 since it supports 64-byte
MaxPacketSize). Therefore, the data, commands, and status for MaxPacketSize). Therefore, the data, commands, and status for
each port must be preceeded by a short header identifying the each port must be preceded by a short header identifying the
destination port. The header also identifies the bytes that follow destination port. The header also identifies the bytes that follow
as data or as command/status info. as data or as command/status info.
......
...@@ -471,7 +471,7 @@ static void ir_read_bulk_callback (struct urb *urb, struct pt_regs *regs) ...@@ -471,7 +471,7 @@ static void ir_read_bulk_callback (struct urb *urb, struct pt_regs *regs)
/* /*
* Bypass flip-buffers, and feed the ldisc directly * Bypass flip-buffers, and feed the ldisc directly
* due to our potentally large buffer size. Since we * due to our potentially large buffer size. Since we
* used to set low_latency, this is exactly what the * used to set low_latency, this is exactly what the
* tty layer did anyway :) * tty layer did anyway :)
*/ */
...@@ -553,7 +553,7 @@ static void ir_set_termios (struct usb_serial_port *port, struct termios *old_te ...@@ -553,7 +553,7 @@ static void ir_set_termios (struct usb_serial_port *port, struct termios *old_te
/* /*
* FIXME, we should compare the baud request against the * FIXME, we should compare the baud request against the
* capability stated in the IR header that we got in the * capability stated in the IR header that we got in the
* startup funtion. * startup function.
*/ */
switch (cflag & CBAUD) { switch (cflag & CBAUD) {
case B2400: ir_baud = SPEED_2400; break; case B2400: ir_baud = SPEED_2400; break;
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
notice, this list of conditions and the following disclaimer in the notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution. documentation and/or other materials provided with the distribution.
3. The name of InnoSys Incorprated may not be used to endorse or promote 3. The name of InnoSys Incorporated may not be used to endorse or promote
products derived from this software without specific prior written products derived from this software without specific prior written
permission. permission.
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
notice, this list of conditions and the following disclaimer in the notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution. documentation and/or other materials provided with the distribution.
3. The name of InnoSys Incorprated may not be used to endorse or promote 3. The name of InnoSys Incorporated may not be used to endorse or promote
products derived from this software without specific prior written products derived from this software without specific prior written
permission. permission.
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
notice, this list of conditions and the following disclaimer in the notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution. documentation and/or other materials provided with the distribution.
3. The name of InnoSys Incorprated may not be used to endorse or promote 3. The name of InnoSys Incorporated may not be used to endorse or promote
products derived from this software without specific prior written products derived from this software without specific prior written
permission. permission.
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
* (01/23/2000) gkh * (01/23/2000) gkh
* Fixed problem of crash when trying to open a port that didn't have a * Fixed problem of crash when trying to open a port that didn't have a
* device assigned to it. Made the minor node finding a little smarter, * device assigned to it. Made the minor node finding a little smarter,
* now it looks to find a continous space for the new device. * now it looks to find a continuous space for the new device.
* *
* (01/21/2000) gkh * (01/21/2000) gkh
* Fixed bug in visor_startup with patch from Miles Lott (milos@insync.net) * Fixed bug in visor_startup with patch from Miles Lott (milos@insync.net)
...@@ -1293,7 +1293,7 @@ static int __init usb_serial_init(void) ...@@ -1293,7 +1293,7 @@ static int __init usb_serial_init(void)
int i; int i;
int result = 0; int result = 0;
/* Initalize our global data */ /* Initialize our global data */
for (i = 0; i < SERIAL_TTY_MINORS; ++i) { for (i = 0; i < SERIAL_TTY_MINORS; ++i) {
serial_table[i] = NULL; serial_table[i] = NULL;
} }
......
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
* usb_serial_port: structure for the specific ports of a device. * usb_serial_port: structure for the specific ports of a device.
* @magic: magic number for internal validity of this pointer. * @magic: magic number for internal validity of this pointer.
* @serial: pointer back to the struct usb_serial owner of this port. * @serial: pointer back to the struct usb_serial owner of this port.
* @tty: pointer to the coresponding tty for this port. * @tty: pointer to the corresponding tty for this port.
* @number: the number of the port (the minor number). * @number: the number of the port (the minor number).
* @interrupt_in_buffer: pointer to the interrupt in buffer for this port. * @interrupt_in_buffer: pointer to the interrupt in buffer for this port.
* @interrupt_in_urb: pointer to the interrupt in struct urb for this port. * @interrupt_in_urb: pointer to the interrupt in struct urb for this port.
......
...@@ -650,7 +650,7 @@ static void isd200_log_config( struct isd200_info* info ) ...@@ -650,7 +650,7 @@ static void isd200_log_config( struct isd200_info* info )
/************************************************************************** /**************************************************************************
* isd200_write_config * isd200_write_config
* *
* Write the ISD200 Configuraton data * Write the ISD200 Configuration data
* *
* RETURNS: * RETURNS:
* ISD status code * ISD status code
...@@ -693,7 +693,7 @@ int isd200_write_config( struct us_data *us ) ...@@ -693,7 +693,7 @@ int isd200_write_config( struct us_data *us )
/************************************************************************** /**************************************************************************
* isd200_read_config * isd200_read_config
* *
* Reads the ISD200 Configuraton data * Reads the ISD200 Configuration data
* *
* RETURNS: * RETURNS:
* ISD status code * ISD status code
...@@ -977,7 +977,7 @@ int isd200_get_inquiry_data( struct us_data *us ) ...@@ -977,7 +977,7 @@ int isd200_get_inquiry_data( struct us_data *us )
/* check for an ATA device */ /* check for an ATA device */
if (info->DeviceFlags & DF_ATA_DEVICE) { if (info->DeviceFlags & DF_ATA_DEVICE) {
/* this must be an ATA device */ /* this must be an ATA device */
/* perform an ATA Commmand Identify */ /* perform an ATA Command Identify */
transferStatus = isd200_action( us, ACTION_IDENTIFY, transferStatus = isd200_action( us, ACTION_IDENTIFY,
&info->drive, &info->drive,
sizeof(struct hd_driveid) ); sizeof(struct hd_driveid) );
......
...@@ -118,7 +118,7 @@ struct bulk_cs_wrap { ...@@ -118,7 +118,7 @@ struct bulk_cs_wrap {
*/ */
#define USB_STOR_XFER_GOOD 0 /* good transfer */ #define USB_STOR_XFER_GOOD 0 /* good transfer */
#define USB_STOR_XFER_SHORT 1 /* transfered less than expected */ #define USB_STOR_XFER_SHORT 1 /* transferred less than expected */
#define USB_STOR_XFER_STALLED 2 /* endpoint stalled */ #define USB_STOR_XFER_STALLED 2 /* endpoint stalled */
#define USB_STOR_XFER_ERROR 3 /* transfer died in the middle */ #define USB_STOR_XFER_ERROR 3 /* transfer died in the middle */
......
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
#define DRIVER_AUTHOR "Greg Kroah-Hartman, greg@kroah.com" #define DRIVER_AUTHOR "Greg Kroah-Hartman, greg@kroah.com"
#define DRIVER_DESC "USB Skeleton Driver" #define DRIVER_DESC "USB Skeleton Driver"
/* Module paramaters */ /* Module parameters */
MODULE_PARM(debug, "i"); MODULE_PARM(debug, "i");
MODULE_PARM_DESC(debug, "Debug enabled or not"); MODULE_PARM_DESC(debug, "Debug enabled or not");
......
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