Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

treewide: Fix typos in various parts of the kernel, and fix some comments.

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>

authored by

Justin P. Mattock and committed by
Jiri Kosina
42b2aa86 a13b0327

+51 -51
+1 -1
arch/arm/plat-omap/include/plat/serial.h
··· 2 2 * arch/arm/plat-omap/include/mach/serial.h 3 3 * 4 4 * Copyright (C) 2009 Texas Instruments 5 - * Addded OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com> 5 + * Added OMAP4 support- Santosh Shilimkar <santosh.shilimkar@ti.com> 6 6 * 7 7 * This program is distributed in the hope that it will be useful, 8 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
+1 -1
arch/powerpc/include/asm/io.h
··· 394 394 #endif /* CONFIG_PPC32 */ 395 395 396 396 /* The "__do_*" operations below provide the actual "base" implementation 397 - * for each of the defined acccessor. Some of them use the out_* functions 397 + * for each of the defined accessors. Some of them use the out_* functions 398 398 * directly, some of them still use EEH, though we might change that in the 399 399 * future. Those macros below provide the necessary argument swapping and 400 400 * handling of the IO base for PIO.
+1 -1
arch/powerpc/include/asm/keylargo.h
··· 51 51 52 52 #define KL_GPIO_SOUND_POWER (KEYLARGO_GPIO_0+0x05) 53 53 54 - /* Hrm... this one is only to be used on Pismo. It seeem to also 54 + /* Hrm... this one is only to be used on Pismo. It seems to also 55 55 * control the timebase enable on other machines. Still to be 56 56 * experimented... --BenH. 57 57 */
+1 -1
arch/powerpc/mm/numa.c
··· 521 521 aa->n_arrays = *prop++; 522 522 aa->array_sz = *prop++; 523 523 524 - /* Now that we know the number of arrrays and size of each array, 524 + /* Now that we know the number of arrays and size of each array, 525 525 * revalidate the size of the property read in. 526 526 */ 527 527 if (len < (aa->n_arrays * aa->array_sz + 2) * sizeof(unsigned int))
+1 -1
arch/sparc/kernel/smp_64.c
··· 840 840 struct trap_per_cpu *tp = &trap_block[raw_smp_processor_id()]; 841 841 struct mm_struct *mm = info; 842 842 843 - /* It is not valid to test "currrent->active_mm == mm" here. 843 + /* It is not valid to test "current->active_mm == mm" here. 844 844 * 845 845 * The value of "current" is not changed atomically with 846 846 * switch_mm(). But that's OK, we just need to check the
+1 -1
drivers/acpi/acpica/hwxface.c
··· 356 356 * 357 357 * PARAMETERS: register_id - ID of ACPI Bit Register to access 358 358 * Value - Value to write to the register, in bit 359 - * position zero. The bit is automaticallly 359 + * position zero. The bit is automatically 360 360 * shifted to the correct position. 361 361 * 362 362 * RETURN: Status
+1 -1
drivers/block/xen-blkback/xenbus.c
··· 613 613 case XenbusStateConnected: 614 614 /* 615 615 * Ensure we connect even when two watches fire in 616 - * close successsion and we miss the intermediate value 616 + * close succession and we miss the intermediate value 617 617 * of frontend_state. 618 618 */ 619 619 if (dev->state == XenbusStateConnected)
+1 -1
drivers/char/ipmi/ipmi_bt_sm.c
··· 560 560 BT_CONTROL(BT_H_BUSY); /* set */ 561 561 562 562 /* 563 - * Uncached, ordered writes should just proceeed serially but 563 + * Uncached, ordered writes should just proceed serially but 564 564 * some BMCs don't clear B2H_ATN with one hit. Fast-path a 565 565 * workaround without too much penalty to the general case. 566 566 */
+1 -1
drivers/edac/ppc4xx_edac.c
··· 142 142 143 143 /* 144 144 * The ibm,sdram-4xx-ddr2 Device Control Registers (DCRs) are 145 - * indirectly acccessed and have a base and length defined by the 145 + * indirectly accessed and have a base and length defined by the 146 146 * device tree. The base can be anything; however, we expect the 147 147 * length to be precisely two registers, the first for the address 148 148 * window and the second for the data window.
+1 -1
drivers/media/video/zoran/zoran_driver.c
··· 1550 1550 if (zoran_formats[i].flags & flag && num++ == fmt->index) { 1551 1551 strncpy(fmt->description, zoran_formats[i].name, 1552 1552 sizeof(fmt->description) - 1); 1553 - /* fmt struct pre-zeroed, so adding '\0' not neeed */ 1553 + /* fmt struct pre-zeroed, so adding '\0' not needed */ 1554 1554 fmt->pixelformat = zoran_formats[i].fourcc; 1555 1555 if (zoran_formats[i].flags & ZORAN_FORMAT_COMPRESSED) 1556 1556 fmt->flags |= V4L2_FMT_FLAG_COMPRESSED;
+1 -1
drivers/message/fusion/lsi/mpi_ioc.h
··· 857 857 #define MPI_EVENT_SAS_DSCVRY_PHY_BITS_MASK (0xFFFF0000) 858 858 #define MPI_EVENT_SAS_DSCVRY_PHY_BITS_SHIFT (16) 859 859 860 - /* SAS Discovery Errror Event data */ 860 + /* SAS Discovery Error Event data */ 861 861 862 862 typedef struct _EVENT_DATA_DISCOVERY_ERROR 863 863 {
+1 -1
drivers/net/irda/nsc-ircc.c
··· 1664 1664 switch_bank(iobase, BANK0); 1665 1665 outb(inb(iobase+MCR) & ~MCR_DMA_EN, iobase+MCR); 1666 1666 1667 - /* Check for underrrun! */ 1667 + /* Check for underrun! */ 1668 1668 if (inb(iobase+ASCR) & ASCR_TXUR) { 1669 1669 self->netdev->stats.tx_errors++; 1670 1670 self->netdev->stats.tx_fifo_errors++;
+2 -2
drivers/net/irda/via-ircc.c
··· 942 942 iobase = self->io.fir_base; 943 943 /* Disable DMA */ 944 944 // DisableDmaChannel(self->io.dma); 945 - /* Check for underrrun! */ 945 + /* Check for underrun! */ 946 946 /* Clear bit, by writing 1 into it */ 947 947 Tx_status = GetTXStatus(iobase); 948 948 if (Tx_status & 0x08) { 949 949 self->netdev->stats.tx_errors++; 950 950 self->netdev->stats.tx_fifo_errors++; 951 951 hwreset(self); 952 - // how to clear underrrun ? 952 + /* how to clear underrun? */ 953 953 } else { 954 954 self->netdev->stats.tx_packets++; 955 955 ResetChip(iobase, 3);
+1 -1
drivers/net/irda/w83977af_ir.c
··· 677 677 switch_bank(iobase, SET0); 678 678 outb(inb(iobase+HCR) & ~HCR_EN_DMA, iobase+HCR); 679 679 680 - /* Check for underrrun! */ 680 + /* Check for underrun! */ 681 681 if (inb(iobase+AUDR) & AUDR_UNDR) { 682 682 IRDA_DEBUG(0, "%s(), Transmit underrun!\n", __func__ ); 683 683
+1 -1
drivers/net/wimax/i2400m/i2400m.h
··· 75 75 * device is up and running or shutdown (through ifconfig up / 76 76 * down). Bus-generic only. 77 77 * 78 - * - control ops: control.c - implements various commmands for 78 + * - control ops: control.c - implements various commands for 79 79 * controlling the device. bus-generic only. 80 80 * 81 81 * - device model glue: driver.c - implements helpers for the
+2 -2
drivers/net/wireless/rtlwifi/rtl8192de/hw.c
··· 466 466 bool int_migration = *(bool *) (val); 467 467 468 468 if (int_migration) { 469 - /* Set interrrupt migration timer and 470 - * corresponging Tx/Rx counter. 469 + /* Set interrupt migration timer and 470 + * corresponding Tx/Rx counter. 471 471 * timer 25ns*0xfa0=100us for 0xf packets. 472 472 * 0x306:Rx, 0x307:Tx */ 473 473 rtl_write_dword(rtlpriv, REG_INT_MIG, 0xfe000fa0);
+1 -1
drivers/parport/parport_mfc3.c
··· 397 397 398 398 399 399 MODULE_AUTHOR("Joerg Dorchain <joerg@dorchain.net>"); 400 - MODULE_DESCRIPTION("Parport Driver for Multiface 3 expansion cards Paralllel Port"); 400 + MODULE_DESCRIPTION("Parport Driver for Multiface 3 expansion cards Parallel Port"); 401 401 MODULE_SUPPORTED_DEVICE("Multiface 3 Parallel Port"); 402 402 MODULE_LICENSE("GPL"); 403 403
+1 -1
drivers/scsi/aic7xxx/aicasm/aicasm.c
··· 1 1 /* 2 - * Aic7xxx SCSI host adapter firmware asssembler 2 + * Aic7xxx SCSI host adapter firmware assembler 3 3 * 4 4 * Copyright (c) 1997, 1998, 2000, 2001 Justin T. Gibbs. 5 5 * Copyright (c) 2001, 2002 Adaptec Inc.
+1 -1
drivers/scsi/ips.c
··· 4494 4494 /* */ 4495 4495 /* Initialize a CCB to default values */ 4496 4496 /* */ 4497 - /* ASSUMED to be callled from within a lock */ 4497 + /* ASSUMED to be called from within a lock */ 4498 4498 /* */ 4499 4499 /****************************************************************************/ 4500 4500 static ips_scb_t *
+1 -1
drivers/scsi/qla4xxx/ql4_fw.h
··· 744 744 uint8_t res4[0x36]; /* 8A-BF */ 745 745 uint8_t iscsi_name[0xE0]; /* C0-19F : xxzzy Make this a 746 746 * pointer to a string so we 747 - * don't have to reserve soooo 747 + * don't have to reserve so 748 748 * much RAM */ 749 749 uint8_t link_local_ipv6_addr[0x10]; /* 1A0-1AF */ 750 750 uint8_t res5[0x10]; /* 1B0-1BF */
+1 -1
drivers/scsi/vmw_pvscsi.c
··· 1144 1144 * 1145 1145 * These are statically allocated. Trying to be clever was not worth it. 1146 1146 * 1147 - * Dynamic allocation can fail, and we can't go deeep into the memory 1147 + * Dynamic allocation can fail, and we can't go deep into the memory 1148 1148 * allocator, since we're a SCSI driver, and trying too hard to allocate 1149 1149 * memory might generate disk I/O. We also don't want to fail disk I/O 1150 1150 * in that case because we can't get an allocation - the I/O could be
+1 -1
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3200.c
··· 3598 3598 n = comedi_buf_write_alloc(s->async, 3599 3599 (7 + 12) * sizeof(unsigned int)); 3600 3600 3601 - /* If not enougth memory available, event is set to Comedi Buffer Errror */ 3601 + /* If not enough memory available, event is set to Comedi Buffer Error */ 3602 3602 if (n > ((7 + 12) * sizeof(unsigned int))) { 3603 3603 printk("\ncomedi_buf_write_alloc n = %i", n); 3604 3604 s->async->events |= COMEDI_CB_ERROR;
+1 -1
drivers/staging/cxt1e1/libsbew.h
··· 323 323 #define CFG_CH_DINV_TX 0x02 324 324 325 325 326 - /* Posssible resettable chipsets/functions */ 326 + /* Possible resettable chipsets/functions */ 327 327 #define RESET_DEV_TEMUX 1 328 328 #define RESET_DEV_TECT3 RESET_DEV_TEMUX 329 329 #define RESET_DEV_PLL 2
+2 -2
drivers/staging/ft1000/ft1000-pcmcia/ft1000_hw.c
··· 344 344 } 345 345 mdelay(1); 346 346 if (info->AsicID == ELECTRABUZZ_ID) { 347 - // set watermark to -1 in order to not generate an interrrupt 347 + // set watermark to -1 in order to not generate an interrupt 348 348 ft1000_write_reg(dev, FT1000_REG_WATERMARK, 0xffff); 349 349 } else { 350 - // set watermark to -1 in order to not generate an interrrupt 350 + // set watermark to -1 in order to not generate an interrupt 351 351 ft1000_write_reg(dev, FT1000_REG_MAG_WATERMARK, 0xffff); 352 352 } 353 353 // clear interrupts
+1 -1
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
··· 601 601 602 602 mdelay(1); 603 603 604 - /* set watermark to -1 in order to not generate an interrrupt */ 604 + /* set watermark to -1 in order to not generate an interrupt */ 605 605 ft1000_write_register(ft1000dev, 0xffff, FT1000_REG_MAG_WATERMARK); 606 606 607 607 /* clear interrupts */
+1 -1
drivers/staging/iio/industrialio-trigger.c
··· 295 295 EXPORT_SYMBOL_GPL(iio_dealloc_pollfunc); 296 296 297 297 /** 298 - * iio_trigger_read_currrent() - trigger consumer sysfs query which trigger 298 + * iio_trigger_read_current() - trigger consumer sysfs query which trigger 299 299 * 300 300 * For trigger consumers the current_trigger interface allows the trigger 301 301 * used by the device to be queried.
+1 -1
drivers/staging/sep/sep_driver.c
··· 1235 1235 /* Counter of lli array entry */ 1236 1236 u32 array_counter; 1237 1237 1238 - /* Init currrent table data size and lli array entry counter */ 1238 + /* Init current table data size and lli array entry counter */ 1239 1239 curr_table_data_size = 0; 1240 1240 array_counter = 0; 1241 1241 *num_table_entries_ptr = 1;
+1 -1
drivers/staging/tidspbridge/Kconfig
··· 78 78 bool "Notify power errors" 79 79 depends on TIDSPBRIDGE 80 80 help 81 - Enable notifications to registered clients on the event of power errror 81 + Enable notifications to registered clients on the event of power error 82 82 trying to suspend bridge driver. Say Y, to signal this event as a fatal 83 83 error, this will require a bridge restart to recover. 84 84
+1 -1
drivers/staging/tidspbridge/rmgr/dbdcd.c
··· 285 285 enum_refs = 0; 286 286 287 287 /* 288 - * TODO: Revisit, this is not an errror case but code 288 + * TODO: Revisit, this is not an error case but code 289 289 * expects non-zero value. 290 290 */ 291 291 status = ENODATA;
+1 -1
drivers/usb/host/hwa-hc.c
··· 481 481 encryption_value = 0; 482 482 } 483 483 484 - /* Set the encryption type for commmunicating with the device */ 484 + /* Set the encryption type for communicating with the device */ 485 485 result = usb_control_msg(wa->usb_dev, usb_sndctrlpipe(wa->usb_dev, 0), 486 486 USB_REQ_SET_ENCRYPTION, 487 487 USB_DIR_OUT | USB_TYPE_CLASS | USB_RECIP_INTERFACE,
+1 -1
drivers/usb/host/imx21-hcd.c
··· 473 473 /* End handling */ 474 474 /* =========================================== */ 475 475 476 - /* Endpoint now idle - release it's ETD(s) or asssign to queued request */ 476 + /* Endpoint now idle - release its ETD(s) or assign to queued request */ 477 477 static void ep_idle(struct imx21 *imx21, struct ep_priv *ep_priv) 478 478 { 479 479 int i;
+1 -1
drivers/usb/otg/fsl_otg.c
··· 639 639 * Delayed pin detect interrupt processing. 640 640 * 641 641 * When the Mini-A cable is disconnected from the board, 642 - * the pin-detect interrupt happens before the disconnnect 642 + * the pin-detect interrupt happens before the disconnect 643 643 * interrupts for the connected device(s). In order to 644 644 * process the disconnect interrupt(s) prior to switching 645 645 * roles, the pin-detect interrupts are delayed, and handled
+1 -1
drivers/uwb/i1480/dfu/usb.c
··· 104 104 * 105 105 * Data buffers to USB cannot be on the stack or in vmalloc'ed areas, 106 106 * so we copy it to the local i1480 buffer before proceeding. In any 107 - * case, we have a max size we can send, soooo. 107 + * case, we have a max size we can send. 108 108 */ 109 109 static 110 110 int i1480_usb_write(struct i1480 *i1480, u32 memory_address,
+1 -1
fs/btrfs/inode.c
··· 1943 1943 }; 1944 1944 1945 1945 /* 1946 - * This is called in transaction commmit time. If there are no orphan 1946 + * This is called in transaction commit time. If there are no orphan 1947 1947 * files in the subvolume, it removes orphan item and frees block_rsv 1948 1948 * structure. 1949 1949 */
+1 -1
fs/ext3/inode.c
··· 2490 2490 * transaction, and VFS/VM ensures that ext3_truncate() cannot run 2491 2491 * simultaneously on behalf of the same inode. 2492 2492 * 2493 - * As we work through the truncate and commmit bits of it to the journal there 2493 + * As we work through the truncate and commit bits of it to the journal there 2494 2494 * is one core, guiding principle: the file's tree must always be consistent on 2495 2495 * disk. We must be able to restart the truncate after a crash. 2496 2496 *
+1 -1
fs/ext4/inode.c
··· 3502 3502 * transaction, and VFS/VM ensures that ext4_truncate() cannot run 3503 3503 * simultaneously on behalf of the same inode. 3504 3504 * 3505 - * As we work through the truncate and commmit bits of it to the journal there 3505 + * As we work through the truncate and commit bits of it to the journal there 3506 3506 * is one core, guiding principle: the file's tree must always be consistent on 3507 3507 * disk. We must be able to restart the truncate after a crash. 3508 3508 *
+1 -1
fs/nfsd/nfs4state.c
··· 658 658 /* 659 659 * XXX: If we run out of reserved DRC memory we could (up to a point) 660 660 * re-negotiate active sessions and reduce their slot usage to make 661 - * rooom for new connections. For now we just fail the create session. 661 + * room for new connections. For now we just fail the create session. 662 662 */ 663 663 static int nfsd4_get_drc_mem(int slotsize, u32 num) 664 664 {
+1 -1
fs/ocfs2/file.c
··· 2108 2108 * remove_suid() calls ->setattr without any hint that 2109 2109 * we may have already done our cluster locking. Since 2110 2110 * ocfs2_setattr() *must* take cluster locks to 2111 - * proceeed, this will lead us to recursively lock the 2111 + * proceed, this will lead us to recursively lock the 2112 2112 * inode. There's also the dinode i_size state which 2113 2113 * can be lost via setattr during extending writes (we 2114 2114 * set inode->i_size at the end of a write. */
+3 -3
fs/xfs/xfs_file.c
··· 209 209 210 210 /* 211 211 * First check if the VFS inode is marked dirty. All the dirtying 212 - * of non-transactional updates no goes through mark_inode_dirty*, 213 - * which allows us to distinguish beteeen pure timestamp updates 212 + * of non-transactional updates do not go through mark_inode_dirty*, 213 + * which allows us to distinguish between pure timestamp updates 214 214 * and i_size updates which need to be caught for fdatasync. 215 - * After that also theck for the dirty state in the XFS inode, which 215 + * After that also check for the dirty state in the XFS inode, which 216 216 * might gets cleared when the inode gets written out via the AIL 217 217 * or xfs_iflush_cluster. 218 218 */
+1 -1
fs/xfs/xfs_log_cil.c
··· 256 256 * Insert the log items into the CIL and calculate the difference in space 257 257 * consumed by the item. Add the space to the checkpoint ticket and calculate 258 258 * if the change requires additional log metadata. If it does, take that space 259 - * as well. Remove the amount of space we addded to the checkpoint ticket from 259 + * as well. Remove the amount of space we added to the checkpoint ticket from 260 260 * the current transaction ticket so that the accounting works out correctly. 261 261 */ 262 262 static void
+1 -1
include/drm/drmP.h
··· 820 820 * Specifically, the timestamp in @vblank_time should correspond as 821 821 * closely as possible to the time when the first video scanline of 822 822 * the video frame after the end of VBLANK will start scanning out, 823 - * the time immmediately after end of the VBLANK interval. If the 823 + * the time immediately after end of the VBLANK interval. If the 824 824 * @crtc is currently inside VBLANK, this will be a time in the future. 825 825 * If the @crtc is currently scanning out a frame, this will be the 826 826 * past start time of the current scanout. This is meant to adhere
+1 -1
include/linux/wanrouter.h
··· 309 309 #define WANOPT_EVEN 2 310 310 311 311 /* CHDLC Protocol Options */ 312 - /* DF Commmented out for now. 312 + /* DF Commented out for now. 313 313 314 314 #define WANOPT_CHDLC_NO_DCD IGNORE_DCD_FOR_LINK_STAT 315 315 #define WANOPT_CHDLC_NO_CTS IGNORE_CTS_FOR_LINK_STAT
+1 -1
include/net/mac80211.h
··· 1423 1423 * DOC: Beacon filter support 1424 1424 * 1425 1425 * Some hardware have beacon filter support to reduce host cpu wakeups 1426 - * which will reduce system power consumption. It usuallly works so that 1426 + * which will reduce system power consumption. It usually works so that 1427 1427 * the firmware creates a checksum of the beacon but omits all constantly 1428 1428 * changing elements (TSF, TIM etc). Whenever the checksum changes the 1429 1429 * beacon is forwarded to the host, otherwise it will be just dropped. That
+1 -1
net/ipv4/ip_fragment.c
··· 392 392 /* Is this the final fragment? */ 393 393 if ((flags & IP_MF) == 0) { 394 394 /* If we already have some bits beyond end 395 - * or have different end, the segment is corrrupted. 395 + * or have different end, the segment is corrupted. 396 396 */ 397 397 if (end < qp->q.len || 398 398 ((qp->q.last_in & INET_FRAG_LAST_IN) && end != qp->q.len))
+1 -1
net/mac80211/work.c
··· 1094 1094 local->tmp_channel = NULL; 1095 1095 /* If tmp_channel wasn't operating channel, then 1096 1096 * we need to go back on-channel. 1097 - * NOTE: If we can ever be here while scannning, 1097 + * NOTE: If we can ever be here while scanning, 1098 1098 * or if the hw_config() channel config logic changes, 1099 1099 * then we may need to do a more thorough check to see if 1100 1100 * we still need to do a hardware config. Currently,
+1 -1
net/sctp/endpointola.c
··· 415 415 sctp_subtype_t subtype; 416 416 sctp_state_t state; 417 417 int error = 0; 418 - int first_time = 1; /* is this the first time through the looop */ 418 + int first_time = 1; /* is this the first time through the loop */ 419 419 420 420 if (ep->base.dead) 421 421 return;