Skip to content

Commit

Permalink
Spelling fixes: lenght->length
Browse files Browse the repository at this point in the history
Signed-off-by: Paulius Zaleckas <pauliusz@yahoo.com>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
  • Loading branch information
Paulius Zaleckas authored and Adrian Bunk committed Feb 3, 2008
1 parent 0cadfc0 commit efad798
Show file tree
Hide file tree
Showing 25 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion arch/parisc/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
flush_user_icache_range((unsigned long) &frame->tramp[0],
(unsigned long) &frame->tramp[TRAMP_SIZE]);

/* TRAMP Words 0-4, Lenght 5 = SIGRESTARTBLOCK_TRAMP
/* TRAMP Words 0-4, Length 5 = SIGRESTARTBLOCK_TRAMP
* TRAMP Words 5-9, Length 4 = SIGRETURN_TRAMP
* So the SIGRETURN_TRAMP is at the end of SIGRESTARTBLOCK_TRAMP
*/
Expand Down
4 changes: 2 additions & 2 deletions arch/sparc/kernel/ioport.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void *sbus_alloc_consistent(struct sbus_dev *sdev, long len, u32 *dma_addrp)
struct resource *res;
int order;

/* XXX why are some lenghts signed, others unsigned? */
/* XXX why are some lengths signed, others unsigned? */
if (len <= 0) {
return NULL;
}
Expand Down Expand Up @@ -393,7 +393,7 @@ void sbus_free_consistent(struct sbus_dev *sdev, long n, void *p, u32 ba)
*/
dma_addr_t sbus_map_single(struct sbus_dev *sdev, void *va, size_t len, int direction)
{
/* XXX why are some lenghts signed, others unsigned? */
/* XXX why are some lengths signed, others unsigned? */
if (len <= 0) {
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/ide-timing.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ static int ide_timing_compute(ide_drive_t *drive, short speed, struct ide_timing
}

/*
* Lenghten active & recovery time so that cycle time is correct.
* Lengthen active & recovery time so that cycle time is correct.
*/

if (t->act8b + t->rec8b < t->cyc8b) {
Expand Down
2 changes: 1 addition & 1 deletion drivers/isdn/hardware/eicon/message.c
Original file line number Diff line number Diff line change
Expand Up @@ -4941,7 +4941,7 @@ void sig_ind(PLCI * plci)
/* b = IE1 */
/* S = IE1 length + cont. */
/* b = IE2 */
/* S = IE2 lenght + cont. */
/* S = IE2 length + cont. */
sendf(plci->appl,
_MANUFACTURER_I,
Id,
Expand Down
2 changes: 1 addition & 1 deletion drivers/isdn/hysdn/hycapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ hycapi_rx_capipkt(hysdn_card * card, unsigned char *buf, unsigned short len)
}
ctrl = &cinfo->capi_ctrl;
if(len < CAPI_MSG_BASELEN) {
printk(KERN_ERR "HYSDN Card%d: invalid CAPI-message, lenght %d!\n",
printk(KERN_ERR "HYSDN Card%d: invalid CAPI-message, length %d!\n",
card->myid, len);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/macintosh/smu.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ static irqreturn_t smu_db_intr(int irq, void *arg)
/* CPU might have brought back the cache line, so we need
* to flush again before peeking at the SMU response. We
* flush the entire buffer for now as we haven't read the
* reply lenght (it's only 2 cache lines anyway)
* reply length (it's only 2 cache lines anyway)
*/
faddr = (unsigned long)smu->cmd_buf;
flush_inval_dcache_range(faddr, faddr + 256);
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/pwc/pwc-if.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ int pwc_handle_frame(struct pwc_device *pdev)
}

if (pdev->read_frame != NULL) {
/* Decompression is a lenghty process, so it's outside of the lock.
/* Decompression is a lengthy process, so it's outside of the lock.
This gives the isoc_handler the opportunity to fill more frames
in the mean time.
*/
Expand Down
2 changes: 1 addition & 1 deletion drivers/message/fusion/lsi/mpi_log_sas.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
#define PL_LOGINFO_SUB_CODE_FRAME_XFER_ERROR (0x00000400) /* Bits 0-3 encode Transport Status Register (offset 0x08) */
/* Bit 0 is Status Bit 0: FrameXferErr */
/* Bit 1 & 2 are Status Bits 16 and 17: FrameXmitErrStatus */
/* Bit 3 is Status Bit 18 WriteDataLenghtGTDataLengthErr */
/* Bit 3 is Status Bit 18 WriteDataLengthGTDataLengthErr */

#define PL_LOGINFO_SUB_CODE_TX_FM_CONNECTED_LOW (0x00000500)
#define PL_LOGINFO_SUB_CODE_SATA_NON_NCQ_RW_ERR_BIT_SET (0x00000600)
Expand Down
2 changes: 1 addition & 1 deletion drivers/mtd/nftlmount.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_b
}
}

/* calc_chain_lenght: Walk through a Virtual Unit Chain and estimate chain length */
/* calc_chain_length: Walk through a Virtual Unit Chain and estimate chain length */
static int calc_chain_length(struct NFTLrecord *nftl, unsigned int first_block)
{
unsigned int length = 0, block = first_block;
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/irda/ali-ircc.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ struct st_fifo {

struct frame_cb {
void *start; /* Start of frame in DMA mem */
int len; /* Lenght of frame in DMA mem */
int len; /* Length of frame in DMA mem */
};

struct tx_fifo {
struct frame_cb queue[MAX_TX_WINDOW]; /* Info about frames in queue */
int ptr; /* Currently being sent */
int len; /* Lenght of queue */
int len; /* Length of queue */
int free; /* Next free slot */
void *tail; /* Next free start in DMA mem */
};
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/irda/nsc-ircc.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,13 +231,13 @@ struct st_fifo {

struct frame_cb {
void *start; /* Start of frame in DMA mem */
int len; /* Lenght of frame in DMA mem */
int len; /* Length of frame in DMA mem */
};

struct tx_fifo {
struct frame_cb queue[MAX_TX_WINDOW]; /* Info about frames in queue */
int ptr; /* Currently being sent */
int len; /* Lenght of queue */
int len; /* Length of queue */
int free; /* Next free slot */
void *tail; /* Next free start in DMA mem */
};
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/irda/via-ircc.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ struct st_fifo {

struct frame_cb {
void *start; /* Start of frame in DMA mem */
int len; /* Lenght of frame in DMA mem */
int len; /* Length of frame in DMA mem */
};

struct tx_fifo {
struct frame_cb queue[MAX_TX_WINDOW + 2]; /* Info about frames in queue */
int ptr; /* Currently being sent */
int len; /* Lenght of queue */
int len; /* Length of queue */
int free; /* Next free slot */
void *tail; /* Next free start in DMA mem */
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/skfp/ess.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ static void ess_send_alc_req(struct s_smc *smc)
req->cmd.sba_cmd = REQUEST_ALLOCATION ;

/*
* set the parameter type and parameter lenght of all used
* set the parameter type and parameter length of all used
* parameters
*/

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/skfp/fplustm.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ static void copy_tx_mac(struct s_smc *smc, u_long td, struct fddi_mac *mac,
/* u_long td; transmit descriptor */
/* struct fddi_mac *mac; mac frame pointer */
/* unsigned off; start address within buffer memory */
/* int len ; lenght of the frame including the FC */
/* int len ; length of the frame including the FC */
{
int i ;
u_int *p ;
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/skfp/hwmtm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1185,7 +1185,7 @@ void process_receive(struct s_smc *smc)

DB_RX("frame length = %d",len,0,4) ;
/*
* check the frame_lenght and all error flags
* check the frame_length and all error flags
*/
if (rfsw & (RX_MSRABT|RX_FS_E|RX_FS_CRC|RX_FS_IMPL)){
if (rfsw & RD_S_MSRABT) {
Expand Down
4 changes: 2 additions & 2 deletions drivers/net/wan/cycx_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static int cycx_data_boot(void __iomem *addr, u8 *code, u32 len)
void __iomem *pt_boot_cmd = addr + CMD_OFFSET;
u32 i;

/* boot buffer lenght */
/* boot buffer length */
writew(CFM_LOAD_BUFSZ, pt_boot_cmd + sizeof(u16));
writew(GEN_DEFPAR, pt_boot_cmd);

Expand Down Expand Up @@ -353,7 +353,7 @@ static int cycx_code_boot(void __iomem *addr, u8 *code, u32 len)
void __iomem *pt_boot_cmd = addr + CMD_OFFSET;
u32 i;

/* boot buffer lenght */
/* boot buffer length */
writew(CFM_LOAD_BUFSZ, pt_boot_cmd + sizeof(u16));
writew(GEN_DEFPAR, pt_boot_cmd);

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,7 @@ int lbs_get_scan(struct net_device *dev, struct iw_request_info *info,
* Called via lbs_prepare_and_send_command(priv, CMD_802_11_SCAN, ...)
* from cmd.c
*
* Sends a fixed lenght data part (specifying the BSS type and BSSID filters)
* Sends a fixed length data part (specifying the BSS type and BSSID filters)
* as well as a variable number/length of TLVs to the firmware.
*
* @param priv A pointer to struct lbs_private structure
Expand Down
2 changes: 1 addition & 1 deletion drivers/parport/probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer,
idlens[1] = idlens[0]+2;
if (belen != lelen) {
int off = 2;
/* Don't try lenghts of 0x100 and 0x200 as 1 and 2 */
/* Don't try lengths of 0x100 and 0x200 as 1 and 2 */
if (idlens[0] <= 2)
off = 0;
idlens[off] = max(belen, lelen);
Expand Down
2 changes: 1 addition & 1 deletion drivers/spi/spi_imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
#define SPI_FIFO_BYTE_WIDTH (2)
#define SPI_FIFO_OVERFLOW_MARGIN (2)

/* DMA burst lenght for half full/empty request trigger */
/* DMA burst length for half full/empty request trigger */
#define SPI_DMA_BLR (SPI_FIFO_DEPTH * SPI_FIFO_BYTE_WIDTH / 2)

/* Dummy char output to achieve reads.
Expand Down
2 changes: 1 addition & 1 deletion fs/befs/datastream.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ befs_count_blocks(struct super_block * sb, befs_data_stream * ds)
as in the indirect region code).
When/if blockno is found, if blockno is inside of a block
run as stored on disk, we offset the start and lenght members
run as stored on disk, we offset the start and length members
of the block run, so that blockno is the start and len is
still valid (the run ends in the same place).
Expand Down
2 changes: 1 addition & 1 deletion fs/jfs/jfs_xtree.c
Original file line number Diff line number Diff line change
Expand Up @@ -3965,7 +3965,7 @@ s64 xtTruncate(tid_t tid, struct inode *ip, s64 newsize, int flag)
* xtTruncate_pmap()
*
* function:
* Perform truncate to zero lenghth for deleted file, leaving the
* Perform truncate to zero length for deleted file, leaving the
* the xtree and working map untouched. This allows the file to
* be accessed via open file handles, while the delete of the file
* is committed to disk.
Expand Down
2 changes: 1 addition & 1 deletion include/linux/cycx_x25.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ struct cycx_x25_cmd {
* @n2win - level 2 window (values: 1 thru 7)
* @n3win - level 3 window (values: 1 thru 7)
* @nvc - # of logical channels (values: 1 thru 64)
* @pktlen - level 3 packet lenght - log base 2 of size
* @pktlen - level 3 packet length - log base 2 of size
* @locaddr - my address
* @remaddr - remote address
* @t1 - time, in seconds
Expand Down
2 changes: 1 addition & 1 deletion include/linux/hdreg.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ typedef struct hd_drive_hob_hdr {
#define SETFEATURES_EN_RLA 0xAA /* Enable read look-ahead feature */
#define SETFEATURES_PREFETCH 0xAB /* Sets drive prefetch value */
#define SETFEATURES_EN_REST 0xAC /* ATA-1 */
#define SETFEATURES_4B_RW_LONG 0xBB /* Set Lenght of 4 bytes */
#define SETFEATURES_4B_RW_LONG 0xBB /* Set Length of 4 bytes */
#define SETFEATURES_DIS_AAM 0xC2 /* Disable Automatic Acoustic Management */
#define SETFEATURES_EN_RPOD 0xCC /* Enable reverting to power on defaults */
#define SETFEATURES_DIS_RI 0xDD /* Disable release interrupt ATAPI */
Expand Down
2 changes: 1 addition & 1 deletion include/linux/reiserfs_fs_sb.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ struct reiserfs_journal {
unsigned long j_trans_id;
unsigned long j_mount_id;
unsigned long j_start; /* start of current waiting commit (index into j_ap_blocks) */
unsigned long j_len; /* lenght of current waiting commit */
unsigned long j_len; /* length of current waiting commit */
unsigned long j_len_alloc; /* number of buffers requested by journal_begin() */
atomic_t j_wcount; /* count of writers for current commit */
unsigned long j_bcount; /* batch count. allows turning X transactions into 1 */
Expand Down
2 changes: 1 addition & 1 deletion include/linux/wireless.h
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ struct iw_priv_args
*/
struct iw_event
{
__u16 len; /* Real lenght of this stuff */
__u16 len; /* Real length of this stuff */
__u16 cmd; /* Wireless IOCTL */
union iwreq_data u; /* IOCTL fixed payload */
};
Expand Down

0 comments on commit efad798

Please sign in to comment.