The below patch fixes some typos in various parts of the kernel, as well as fixes some comments.
Please let me know if I missed anything, and I will try to get it changed and resent.
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Acked-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  * arch/arm/plat-omap/include/mach/serial.h
  *
  * Copyright (C) 2009 Texas Instruments
- * Addded OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
+ * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com>
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
 #endif /* CONFIG_PPC32 */
 
 /* The "__do_*" operations below provide the actual "base" implementation
- * for each of the defined acccessor. Some of them use the out_* functions
+ * for each of the defined accessors. Some of them use the out_* functions
  * directly, some of them still use EEH, though we might change that in the
  * future. Those macros below provide the necessary argument swapping and
  * handling of the IO base for PIO.
 
 
 #define KL_GPIO_SOUND_POWER            (KEYLARGO_GPIO_0+0x05)
 
-/* Hrm... this one is only to be used on Pismo. It seeem to also
+/* Hrm... this one is only to be used on Pismo. It seems to also
  * control the timebase enable on other machines. Still to be
  * experimented... --BenH.
  */
 
        aa->n_arrays = *prop++;
        aa->array_sz = *prop++;
 
-       /* Now that we know the number of arrrays and size of each array,
+       /* Now that we know the number of arrays and size of each array,
         * revalidate the size of the property read in.
         */
        if (len < (aa->n_arrays * aa->array_sz + 2) * sizeof(unsigned int))
 
        struct trap_per_cpu *tp = &trap_block[raw_smp_processor_id()];
        struct mm_struct *mm = info;
 
-       /* It is not valid to test "currrent->active_mm == mm" here.
+       /* It is not valid to test "current->active_mm == mm" here.
         *
         * The value of "current" is not changed atomically with
         * switch_mm().  But that's OK, we just need to check the
 
  *
  * PARAMETERS:  register_id     - ID of ACPI Bit Register to access
  *              Value           - Value to write to the register, in bit
- *                                position zero. The bit is automaticallly
+ *                                position zero. The bit is automatically
  *                                shifted to the correct position.
  *
  * RETURN:      Status
 
        case XenbusStateConnected:
                /*
                 * Ensure we connect even when two watches fire in
-                * close successsion and we miss the intermediate value
+                * close succession and we miss the intermediate value
                 * of frontend_state.
                 */
                if (dev->state == XenbusStateConnected)
 
                BT_CONTROL(BT_H_BUSY);          /* set */
 
                /*
-                * Uncached, ordered writes should just proceeed serially but
+                * Uncached, ordered writes should just proceed serially but
                 * some BMCs don't clear B2H_ATN with one hit.  Fast-path a
                 * workaround without too much penalty to the general case.
                 */
 
 
 /*
  * The ibm,sdram-4xx-ddr2 Device Control Registers (DCRs) are
- * indirectly acccessed and have a base and length defined by the
+ * indirectly accessed and have a base and length defined by the
  * device tree. The base can be anything; however, we expect the
  * length to be precisely two registers, the first for the address
  * window and the second for the data window.
 
                if (zoran_formats[i].flags & flag && num++ == fmt->index) {
                        strncpy(fmt->description, zoran_formats[i].name,
                                sizeof(fmt->description) - 1);
-                       /* fmt struct pre-zeroed, so adding '\0' not neeed */
+                       /* fmt struct pre-zeroed, so adding '\0' not needed */
                        fmt->pixelformat = zoran_formats[i].fourcc;
                        if (zoran_formats[i].flags & ZORAN_FORMAT_COMPRESSED)
                                fmt->flags |= V4L2_FMT_FLAG_COMPRESSED;
 
 #define MPI_EVENT_SAS_DSCVRY_PHY_BITS_MASK                  (0xFFFF0000)
 #define MPI_EVENT_SAS_DSCVRY_PHY_BITS_SHIFT                 (16)
 
-/* SAS Discovery Errror Event data */
+/* SAS Discovery Error Event data */
 
 typedef struct _EVENT_DATA_DISCOVERY_ERROR
 {
 
        switch_bank(iobase, BANK0);
         outb(inb(iobase+MCR) & ~MCR_DMA_EN, iobase+MCR);
        
-       /* Check for underrrun! */
+       /* Check for underrun! */
        if (inb(iobase+ASCR) & ASCR_TXUR) {
                self->netdev->stats.tx_errors++;
                self->netdev->stats.tx_fifo_errors++;
 
        iobase = self->io.fir_base;
        /* Disable DMA */
 //      DisableDmaChannel(self->io.dma);
-       /* Check for underrrun! */
+       /* Check for underrun! */
        /* Clear bit, by writing 1 into it */
        Tx_status = GetTXStatus(iobase);
        if (Tx_status & 0x08) {
                self->netdev->stats.tx_errors++;
                self->netdev->stats.tx_fifo_errors++;
                hwreset(self);
-// how to clear underrrun ?
+       /* how to clear underrun? */
        } else {
                self->netdev->stats.tx_packets++;
                ResetChip(iobase, 3);
 
        switch_bank(iobase, SET0);
        outb(inb(iobase+HCR) & ~HCR_EN_DMA, iobase+HCR);
        
-       /* Check for underrrun! */
+       /* Check for underrun! */
        if (inb(iobase+AUDR) & AUDR_UNDR) {
                IRDA_DEBUG(0, "%s(), Transmit underrun!\n", __func__ );
                
 
  *        device is up and running or shutdown (through ifconfig up /
  *        down). Bus-generic only.
  *
- *  - control ops: control.c - implements various commmands for
+ *  - control ops: control.c - implements various commands for
  *        controlling the device. bus-generic only.
  *
  *  - device model glue: driver.c - implements helpers for the
 
                bool int_migration = *(bool *) (val);
 
                if (int_migration) {
-                       /* Set interrrupt migration timer and
-                        * corresponging Tx/Rx counter.
+                       /* Set interrupt migration timer and
+                        * corresponding Tx/Rx counter.
                         * timer 25ns*0xfa0=100us for 0xf packets.
                         * 0x306:Rx, 0x307:Tx */
                        rtl_write_dword(rtlpriv, REG_INT_MIG, 0xfe000fa0);
 
 
 
 MODULE_AUTHOR("Joerg Dorchain <joerg@dorchain.net>");
-MODULE_DESCRIPTION("Parport Driver for Multiface 3 expansion cards Paralllel Port");
+MODULE_DESCRIPTION("Parport Driver for Multiface 3 expansion cards Parallel Port");
 MODULE_SUPPORTED_DEVICE("Multiface 3 Parallel Port");
 MODULE_LICENSE("GPL");
 
 
 /*
- * Aic7xxx SCSI host adapter firmware asssembler
+ * Aic7xxx SCSI host adapter firmware assembler
  *
  * Copyright (c) 1997, 1998, 2000, 2001 Justin T. Gibbs.
  * Copyright (c) 2001, 2002 Adaptec Inc.
 
 /*                                                                          */
 /*   Initialize a CCB to default values                                     */
 /*                                                                          */
-/* ASSUMED to be callled from within a lock                                 */
+/* ASSUMED to be called from within a lock                                 */
 /*                                                                          */
 /****************************************************************************/
 static ips_scb_t *
 
        uint8_t res4[0x36];     /* 8A-BF */
        uint8_t iscsi_name[0xE0];       /* C0-19F : xxzzy Make this a
                                         * pointer to a string so we
-                                        * don't have to reserve soooo
+                                        * don't have to reserve so
                                         * much RAM */
        uint8_t link_local_ipv6_addr[0x10]; /* 1A0-1AF */
        uint8_t res5[0x10];     /* 1B0-1BF */
 
  *
  * These are statically allocated.  Trying to be clever was not worth it.
  *
- * Dynamic allocation can fail, and we can't go deeep into the memory
+ * Dynamic allocation can fail, and we can't go deep into the memory
  * allocator, since we're a SCSI driver, and trying too hard to allocate
  * memory might generate disk I/O.  We also don't want to fail disk I/O
  * in that case because we can't get an allocation - the I/O could be
 
                        n = comedi_buf_write_alloc(s->async,
                                (7 + 12) * sizeof(unsigned int));
 
-                       /*  If not enougth memory available, event is set to Comedi Buffer Errror */
+                       /*  If not enough memory available, event is set to Comedi Buffer Error */
                        if (n > ((7 + 12) * sizeof(unsigned int))) {
                                printk("\ncomedi_buf_write_alloc n = %i", n);
                                s->async->events |= COMEDI_CB_ERROR;
 
 #define CFG_CH_DINV_TX      0x02
 
 
-/* Posssible resettable chipsets/functions */
+/* Possible resettable chipsets/functions */
 #define RESET_DEV_TEMUX     1
 #define RESET_DEV_TECT3     RESET_DEV_TEMUX
 #define RESET_DEV_PLL       2
 
        }
        mdelay(1);
        if (info->AsicID == ELECTRABUZZ_ID) {
-               // set watermark to -1 in order to not generate an interrrupt
+               // set watermark to -1 in order to not generate an interrupt
                ft1000_write_reg(dev, FT1000_REG_WATERMARK, 0xffff);
        } else {
-               // set watermark to -1 in order to not generate an interrrupt
+               // set watermark to -1 in order to not generate an interrupt
                ft1000_write_reg(dev, FT1000_REG_MAG_WATERMARK, 0xffff);
        }
        // clear interrupts
 
 
        mdelay(1);
 
-       /* set watermark to -1 in order to not generate an interrrupt */
+       /* set watermark to -1 in order to not generate an interrupt */
        ft1000_write_register(ft1000dev, 0xffff, FT1000_REG_MAG_WATERMARK);
 
        /* clear interrupts */
 
 EXPORT_SYMBOL_GPL(iio_dealloc_pollfunc);
 
 /**
- * iio_trigger_read_currrent() - trigger consumer sysfs query which trigger
+ * iio_trigger_read_current() - trigger consumer sysfs query which trigger
  *
  * For trigger consumers the current_trigger interface allows the trigger
  * used by the device to be queried.
 
        /* Counter of lli array entry */
        u32 array_counter;
 
-       /* Init currrent table data size and lli array entry counter */
+       /* Init current table data size and lli array entry counter */
        curr_table_data_size = 0;
        array_counter = 0;
        *num_table_entries_ptr = 1;
 
        bool "Notify power errors"
        depends on TIDSPBRIDGE
        help
-         Enable notifications to registered clients on the event of power errror
+         Enable notifications to registered clients on the event of power error
          trying to suspend bridge driver. Say Y, to signal this event as a fatal
          error, this will require a bridge restart to recover.
 
 
                        enum_refs = 0;
 
                        /*
-                        * TODO: Revisit, this is not an errror case but code
+                        * TODO: Revisit, this is not an error case but code
                         * expects non-zero value.
                         */
                        status = ENODATA;
 
                encryption_value = 0;
        }
 
-       /* Set the encryption type for commmunicating with the device */
+       /* Set the encryption type for communicating with the device */
        result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0),
                        USB_REQ_SET_ENCRYPTION,
                        USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
 
 /* End handling                                */
 /* =========================================== */
 
-/* Endpoint now idle - release it's ETD(s) or asssign to queued request */
+/* Endpoint now idle - release its ETD(s) or assign to queued request */
 static void ep_idle(struct imx21 *imx21, struct ep_priv *ep_priv)
 {
        int i;
 
  * Delayed pin detect interrupt processing.
  *
  * When the Mini-A cable is disconnected from the board,
- * the pin-detect interrupt happens before the disconnnect
+ * the pin-detect interrupt happens before the disconnect
  * interrupts for the connected device(s).  In order to
  * process the disconnect interrupt(s) prior to switching
  * roles, the pin-detect interrupts are delayed, and handled
 
  *
  * Data buffers to USB cannot be on the stack or in vmalloc'ed areas,
  * so we copy it to the local i1480 buffer before proceeding. In any
- * case, we have a max size we can send, soooo.
+ * case, we have a max size we can send.
  */
 static
 int i1480_usb_write(struct i1480 *i1480, u32 memory_address,
 
 };
 
 /*
- * This is called in transaction commmit time. If there are no orphan
+ * This is called in transaction commit time. If there are no orphan
  * files in the subvolume, it removes orphan item and frees block_rsv
  * structure.
  */
 
  * transaction, and VFS/VM ensures that ext3_truncate() cannot run
  * simultaneously on behalf of the same inode.
  *
- * As we work through the truncate and commmit bits of it to the journal there
+ * As we work through the truncate and commit bits of it to the journal there
  * is one core, guiding principle: the file's tree must always be consistent on
  * disk.  We must be able to restart the truncate after a crash.
  *
 
  * transaction, and VFS/VM ensures that ext4_truncate() cannot run
  * simultaneously on behalf of the same inode.
  *
- * As we work through the truncate and commmit bits of it to the journal there
+ * As we work through the truncate and commit bits of it to the journal there
  * is one core, guiding principle: the file's tree must always be consistent on
  * disk.  We must be able to restart the truncate after a crash.
  *
 
 /*
  * XXX: If we run out of reserved DRC memory we could (up to a point)
  * re-negotiate active sessions and reduce their slot usage to make
- * rooom for new connections. For now we just fail the create session.
+ * room for new connections. For now we just fail the create session.
  */
 static int nfsd4_get_drc_mem(int slotsize, u32 num)
 {
 
                 * remove_suid() calls ->setattr without any hint that
                 * we may have already done our cluster locking. Since
                 * ocfs2_setattr() *must* take cluster locks to
-                * proceeed, this will lead us to recursively lock the
+                * proceed, this will lead us to recursively lock the
                 * inode. There's also the dinode i_size state which
                 * can be lost via setattr during extending writes (we
                 * set inode->i_size at the end of a write. */
 
 
        /*
         * First check if the VFS inode is marked dirty.  All the dirtying
-        * of non-transactional updates no goes through mark_inode_dirty*,
-        * which allows us to distinguish beteeen pure timestamp updates
+        * of non-transactional updates do not go through mark_inode_dirty*,
+        * which allows us to distinguish between pure timestamp updates
         * and i_size updates which need to be caught for fdatasync.
-        * After that also theck for the dirty state in the XFS inode, which
+        * After that also check for the dirty state in the XFS inode, which
         * might gets cleared when the inode gets written out via the AIL
         * or xfs_iflush_cluster.
         */
 
  * Insert the log items into the CIL and calculate the difference in space
  * consumed by the item. Add the space to the checkpoint ticket and calculate
  * if the change requires additional log metadata. If it does, take that space
- * as well. Remove the amount of space we addded to the checkpoint ticket from
+ * as well. Remove the amount of space we added to the checkpoint ticket from
  * the current transaction ticket so that the accounting works out correctly.
  */
 static void
 
         * Specifically, the timestamp in @vblank_time should correspond as
         * closely as possible to the time when the first video scanline of
         * the video frame after the end of VBLANK will start scanning out,
-        * the time immmediately after end of the VBLANK interval. If the
+        * the time immediately after end of the VBLANK interval. If the
         * @crtc is currently inside VBLANK, this will be a time in the future.
         * If the @crtc is currently scanning out a frame, this will be the
         * past start time of the current scanout. This is meant to adhere
 
 #define WANOPT_EVEN    2
 
 /* CHDLC Protocol Options */
-/* DF Commmented out for now.
+/* DF Commented out for now.
 
 #define WANOPT_CHDLC_NO_DCD            IGNORE_DCD_FOR_LINK_STAT
 #define WANOPT_CHDLC_NO_CTS            IGNORE_CTS_FOR_LINK_STAT
 
  * DOC: Beacon filter support
  *
  * Some hardware have beacon filter support to reduce host cpu wakeups
- * which will reduce system power consumption. It usuallly works so that
+ * which will reduce system power consumption. It usually works so that
  * the firmware creates a checksum of the beacon but omits all constantly
  * changing elements (TSF, TIM etc). Whenever the checksum changes the
  * beacon is forwarded to the host, otherwise it will be just dropped. That
 
        /* Is this the final fragment? */
        if ((flags & IP_MF) == 0) {
                /* If we already have some bits beyond end
-                * or have different end, the segment is corrrupted.
+                * or have different end, the segment is corrupted.
                 */
                if (end < qp->q.len ||
                    ((qp->q.last_in & INET_FRAG_LAST_IN) && end != qp->q.len))
 
                local->tmp_channel = NULL;
                /* If tmp_channel wasn't operating channel, then
                 * we need to go back on-channel.
-                * NOTE:  If we can ever be here while scannning,
+                * NOTE:  If we can ever be here while scanning,
                 * or if the hw_config() channel config logic changes,
                 * then we may need to do a more thorough check to see if
                 * we still need to do a hardware config.  Currently,
 
        sctp_subtype_t subtype;
        sctp_state_t state;
        int error = 0;
-       int first_time = 1;     /* is this the first time through the looop */
+       int first_time = 1;     /* is this the first time through the loop */
 
        if (ep->base.dead)
                return;