mtd: spelling, capitalization, uniformity
Subsystems (2)
PATCH 1/1 mtd: spelling, capitalization, uniformity
Therefor -> Therefore
[Intern], [Internal] -> [INTERN]
[REPLACABLE] -> [REPLACEABLE]
syndrom, syndom -> syndrome
ecc -> ECC
buswith -> buswidth
endianess -> endianness
dont -> don't
occures -> occurs
independend -> independent
wihin -> within
erease -> erase
blockes -> blocks
...
(This is based on Artem's l2-mtd-2.6 git tree)
--- drivers/mtd/chips/jedec_probe.c | 2 +- drivers/mtd/devices/doc2000.c | 2 +- drivers/mtd/devices/doc2001.c | 2 +- drivers/mtd/devices/doc2001plus.c | 2 +- drivers/mtd/devices/docecc.c | 2 +- drivers/mtd/mtdchar.c | 6 +- drivers/mtd/nand/au1550nd.c | 29 +++++------ drivers/mtd/nand/cafe_nand.c | 2 +- drivers/mtd/nand/diskonchip.c | 4 +- drivers/mtd/nand/nand_base.c | 105 ++++++++++++++++++------------------ drivers/mtd/nand/nand_bbt.c | 8 ++-- drivers/mtd/nand/nand_ecc.c | 10 ++-- drivers/mtd/nand/rtc_from4.c | 2 +- drivers/mtd/onenand/onenand_base.c | 12 ++-- drivers/mtd/sm_ftl.c | 2 +- include/linux/mtd/mtd.h | 2 +- include/linux/mtd/nand.h | 50 +++++++++--------- 17 files changed, 119 insertions(+), 123 deletions(-)
drivers/mtd/chips/jedec_probe.c +1 -1
@@ -1914,7 +1914,7 @@ static void jedec_reset(u32 base, struct map_info *map, struct cfi_private *cfi)* (oh and incidentaly the jedec spec - 3.5.3.3) the reset * sequence is *supposed* to be 0xaa at 0x5555, 0x55 at * 0x2aaa, 0xF0 at 0x5555 this will not affect the AMD chips -* as they will ignore the writes and dont care what address +* as they will ignore the writes and don't care what address * the F0 is written to */ if (cfi->addr_unlock1) { DEBUG( MTD_DEBUG_LEVEL3,
drivers/mtd/devices/doc2000.c +1 -1
@@ -699,7 +699,7 @@ static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,#ifdef ECC_DEBUG printk (KERN_ERR "DiskOnChip ECC Error: Read at %lx\n" , (long )from);#endif -/* Read the ECC syndrom through the DiskOnChip ECC +/* Read the ECC syndrome through the DiskOnChip ECC logic. These syndrome will be all ZERO when there is no error */ for (i =0 ; i <6 ; i++) {
drivers/mtd/devices/doc2001.c +1 -1
@@ -464,7 +464,7 @@ static int doc_read (struct mtd_info *mtd, loff_t from, size_t len,#ifdef ECC_DEBUG printk ("DiskOnChip ECC Error: Read at %lx\n" , (long )from);#endif -/* Read the ECC syndrom through the DiskOnChip ECC logic. +/* Read the ECC syndrome through the DiskOnChip ECC logic. These syndrome will be all ZERO when there is no error */ for (i =0 ; i <6 ; i++) { syndrome[i] =ReadDOC (docptr, ECCSyndrome0 + i);
drivers/mtd/devices/doc2001plus.c +1 -1
@@ -655,7 +655,7 @@ static int doc_read(struct mtd_info *mtd, loff_t from, size_t len,#ifdef ECC_DEBUG printk ("DiskOnChip ECC Error: Read at %lx\n" , (long )from);#endif -/* Read the ECC syndrom through the DiskOnChip ECC logic. +/* Read the ECC syndrome through the DiskOnChip ECC logic. These syndrome will be all ZERO when there is no error */ for (i =0 ; i <6 ; i++) syndrome[i] =ReadDOC (docptr, Mplus_ECCSyndrome0 + i);
drivers/mtd/devices/docecc.c +1 -1
@@ -2,7 +2,7 @@* ECC algorithm for M-systems disk on chip. We use the excellent Reed * Solmon code of Phil Karn ([email protected]) available under the * GNU GPL License. The rest is simply to convert the disk on chip -* syndrom into a standard syndom. +* syndrome into a standard syndome. * * Author: Fabrice Bellard ([email protected]) * Copyright (C) 2000 Netgem S.A.
drivers/mtd/mtdchar.c +3 -3
@@ -233,9 +233,9 @@ static ssize_t mtd_read(struct file *file, char __user *buf, size_t count,loff_tdefault : ret = mtd->read (mtd, *ppos, len, &retlen, kbuf); } -/* Nand returns -EBADMSG on ecc errors, but it returns +/* Nand returns -EBADMSG on ECC errors, but it returns * the data. For our userspace tools it is important -* to dump areas with ecc errors ! +* to dump areas with ECC errors! * For kernel internal usage it also might return -EUCLEAN * to signal the caller that a bitflip has occurred and has * been corrected by the ECC algorithm.
@@ -883,7 +883,7 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) }#endif -/* This ioctl is being deprecated - it truncates the ecc layout */ +/* This ioctl is being deprecated - it truncates the ECC layout */ case ECCGETLAYOUT : {struct nand_ecclayout_user *usrlay;
drivers/mtd/nand/au1550nd.c +13 -16
@@ -48,7 +48,7 @@ static const struct mtd_partition partition_info[] = {* au_read_byte - read one byte from the chip * @mtd: MTD device structure * -* read function for 8bit buswith +* read function for 8bit buswidth */ static u_char au_read_byte (struct mtd_info *mtd) {
@@ -63,7 +63,7 @@ static u_char au_read_byte(struct mtd_info *mtd)* @mtd: MTD device structure * @byte: pointer to data byte to write * -* write function for 8it buswith +* write function for 8it buswidth */ static void au_write_byte (struct mtd_info *mtd,u_char byte) {
@@ -73,11 +73,10 @@ static void au_write_byte(struct mtd_info *mtd, u_char byte) }/** -* au_read_byte16 - read one byte endianess aware from the chip +* au_read_byte16 - read one byte endianness aware from the chip * @mtd: MTD device structure * -* read function for 16bit buswith with -* endianess conversion +* read function for 16bit buswidth with endianness conversion */ static u_char au_read_byte16 (struct mtd_info *mtd) {
@@ -88,12 +87,11 @@ static u_char au_read_byte16(struct mtd_info *mtd) }/** -* au_write_byte16 - write one byte endianess aware to the chip +* au_write_byte16 - write one byte endianness aware to the chip * @mtd: MTD device structure * @byte: pointer to data byte to write * -* write function for 16bit buswith with -* endianess conversion +* write function for 16bit buswidth with endianness conversion */ static void au_write_byte16 (struct mtd_info *mtd,u_char byte) {
@@ -106,8 +104,7 @@ static void au_write_byte16(struct mtd_info *mtd, u_char byte)* au_read_word - read one word from the chip * @mtd: MTD device structure * -* read function for 16bit buswith without -* endianess conversion +* read function for 16bit buswidth without endianness conversion */ static u16 au_read_word (struct mtd_info *mtd) {
@@ -123,7 +120,7 @@ static u16 au_read_word(struct mtd_info *mtd)* @buf: data buffer * @len: number of bytes to write * -* write function for 8bit buswith +* write function for 8bit buswidth */ static void au_write_buf (struct mtd_info *mtd,const u_char *buf,int len) {
@@ -142,7 +139,7 @@ static void au_write_buf(struct mtd_info *mtd, const u_char *buf, int len)* @buf: buffer to store date * @len: number of bytes to read * -* read function for 8bit buswith +* read function for 8bit buswidth */ static void au_read_buf (struct mtd_info *mtd,u_char *buf,int len) {
@@ -161,7 +158,7 @@ static void au_read_buf(struct mtd_info *mtd, u_char *buf, int len)* @buf: buffer containing the data to compare * @len: number of bytes to compare * -* verify function for 8bit buswith +* verify function for 8bit buswidth */ static int au_verify_buf (struct mtd_info *mtd,const u_char *buf,int len) {
@@ -183,7 +180,7 @@ static int au_verify_buf(struct mtd_info *mtd, const u_char *buf, int len)* @buf: data buffer * @len: number of bytes to write * -* write function for 16bit buswith +* write function for 16bit buswidth */ static void au_write_buf16 (struct mtd_info *mtd,const u_char *buf,int len) {
@@ -205,7 +202,7 @@ static void au_write_buf16(struct mtd_info *mtd, const u_char *buf, int len)* @buf: buffer to store date * @len: number of bytes to read * -* read function for 16bit buswith +* read function for 16bit buswidth */ static void au_read_buf16 (struct mtd_info *mtd,u_char *buf,int len) {
@@ -226,7 +223,7 @@ static void au_read_buf16(struct mtd_info *mtd, u_char *buf, int len)* @buf: buffer containing the data to compare * @len: number of bytes to compare * -* verify function for 16bit buswith +* verify function for 16bit buswidth */ static int au_verify_buf16 (struct mtd_info *mtd,const u_char *buf,int len) {
drivers/mtd/nand/cafe_nand.c +1 -1
@@ -370,7 +370,7 @@ static int cafe_nand_read_oob(struct mtd_info *mtd, struct nand_chip *chip,return 1 ; }/** -* cafe_nand_read_page_syndrome - {REPLACABLE] hardware ecc syndrom based page read +* cafe_nand_read_page_syndrome - [REPLACEABLE] hardware ecc syndrome based page read * @mtd: mtd info structure * @chip: nand chip info structure * @buf: buffer to store read data
drivers/mtd/nand/diskonchip.c +2 -2
@@ -132,7 +132,7 @@ static struct rs_control *rs_decoder;/* * The HW decoder in the DoC ASIC's provides us a error syndrome, -* which we must convert to a standard syndrom usable by the generic +* which we must convert to a standard syndrome usable by the generic * Reed-Solomon library code. * * Fabrice Bellard figured this out in the old docecc code. I added
@@ -153,7 +153,7 @@ static int doc_ecc_decode(struct rs_control *rs, uint8_t *data, uint8_t *ecc) ds[3 ] = ((ecc[3 ] &0xc0 ) >>6 ) | ((ecc[0 ] &0xff ) <<2 ); parity = ecc[1 ]; -/* Initialize the syndrom buffer */ +/* Initialize the syndrome buffer */ for (i =0 ; i <NROOTS ; i++) s[i] = ds[0 ];/*
drivers/mtd/nand/nand_base.c +52 -53
397 lines not on this page · raw message
drivers/mtd/nand/nand_bbt.c +4 -4
@@ -149,7 +149,7 @@ static int check_short_pattern(uint8_t *buf, struct nand_bbt_descr *td)* add_marker_len - compute the length of the marker in data area * @td: BBT descriptor used for computation * -* The length will be 0 if the markeris located in OOB area. +* The length will be 0 if the marker is located in OOB area. */ static u32 add_marker_len (struct nand_bbt_descr *td) {
@@ -170,7 +170,7 @@ static u32 add_marker_len(struct nand_bbt_descr *td)* @buf: temporary buffer * @page: the starting page * @num: the number of bbt descriptors to read -* @td: the bbt describtion table +* @td: the bbt describtion table * @offs: offset in the memory table * * Read the bad block table starting from page.
@@ -1241,7 +1241,7 @@ static struct nand_bbt_descr agand_flashbased = { .pattern = scan_agand_pattern }; -/* Generic flash bbt decriptors */ +/* Generic flash bbt descriptors */ static uint8_t bbt_pattern[] = {'B' ,'b' ,'t' ,'0' };static uint8_t mirror_pattern[] = {'1' ,'t' ,'b' ,'B' };
@@ -1286,7 +1286,7 @@ static struct nand_bbt_descr bbt_mirror_no_bbt_descr = { };/** -* nand_create_default_bbt_descr - [Internal] Creates a BBT descriptor structure +* nand_create_default_bbt_descr - [INTERN] Creates a BBT descriptor structure * @this: NAND chip to create descriptor for * * This function allocates and initializes a nand_bbt_descr for BBM detection
drivers/mtd/nand/nand_ecc.c +5 -5
@@ -110,7 +110,7 @@ static const char bitsperbyte[256] = {/* * addressbits is a lookup table to filter out the bits from the xor-ed -* ecc data that identify the faulty location. +* ECC data that identify the faulty location. * this is only used for repairing parity * see the comments in nand_correct_data for more details */
@@ -153,7 +153,7 @@ static const char addressbits[256] = {* __nand_calculate_ecc - [NAND Interface] Calculate 3-byte ECC for 256/512-byte * block * @buf: input buffer with raw data -* @eccsize: data bytes per ecc step (256 or 512) +* @eccsize: data bytes per ECC step (256 or 512) * @code: output buffer with ECC */ void __nand_calculate_ecc(const unsigned char *buf, unsigned int eccsize,
@@ -348,7 +348,7 @@ void __nand_calculate_ecc(const unsigned char *buf, unsigned int eccsize, rp17 = (par ^ rp16) &0xff ;/* -* Finally calculate the ecc bits. +* Finally calculate the ECC bits. * Again here it might seem that there are performance optimisations * possible, but benchmarks showed that on the system this is developed * the code below is the fastest
@@ -436,7 +436,7 @@ EXPORT_SYMBOL(nand_calculate_ecc);* @buf: raw data read from the chip * @read_ecc: ECC from the chip * @calc_ecc: the ECC calculated from raw data -* @eccsize: data bytes per ecc step (256 or 512) +* @eccsize: data bytes per ECC step (256 or 512) * * Detect and correct a 1 bit error for eccsize byte block */
@@ -505,7 +505,7 @@ int __nand_correct_data(unsigned char *buf, }/* count nr of bits; use table lookup, faster than calculating it */ if ((bitsperbyte[b0] + bitsperbyte[b1] + bitsperbyte[b2]) ==1 ) -return 1 ;/* error in ecc data; no action needed */ +return 1 ;/* error in ECC data; no action needed */ printk (KERN_ERR "uncorrectable error : " );return -1 ;
drivers/mtd/nand/rtc_from4.c +1 -1
@@ -351,7 +351,7 @@ static int rtc_from4_correct_data(struct mtd_info *mtd, const u_char *buf, u_chareturn 0 ; } -/* Read the syndrom pattern from the FPGA and correct the bitorder */ +/* Read the syndrome pattern from the FPGA and correct the bitorder */ rs_ecc = (volatile unsigned short *)(rtc_from4_fio_base +RTC_FROM4_RS_ECC );for (i =0 ; i <8 ; i++) { ecc[i] =bitrev8 (*rs_ecc);
drivers/mtd/onenand/onenand_base.c +6 -6
@@ -1015,7 +1015,7 @@ static void onenand_release_device(struct mtd_info *mtd) }/** -* onenand_transfer_auto_oob - [Internal] oob auto-placement transfer +* onenand_transfer_auto_oob - [INTERN] oob auto-placement transfer * @param mtd MTD device structure * @param buf destination address * @param column oob offset to read from
@@ -1821,7 +1821,7 @@ static int onenand_panic_write(struct mtd_info *mtd, loff_t to, size_t len, }/** -* onenand_fill_auto_oob - [Internal] oob auto-placement transfer +* onenand_fill_auto_oob - [INTERN] oob auto-placement transfer * @param mtd MTD device structure * @param oob_buf oob buffer * @param buf source address
@@ -2055,7 +2055,7 @@ static int onenand_write_ops_nolock(struct mtd_info *mtd, loff_t to,/** -* onenand_write_oob_nolock - [Internal] OneNAND write out-of-band +* onenand_write_oob_nolock - [INTERN] OneNAND write out-of-band * @param mtd MTD device structure * @param to offset to write to * @param len number of bytes to write
@@ -2281,7 +2281,7 @@ static int onenand_multiblock_erase_verify(struct mtd_info *mtd, }/** -* onenand_multiblock_erase - [Internal] erase block(s) using multiblock erase +* onenand_multiblock_erase - [INTERN] erase block(s) using multiblock erase * @param mtd MTD device structure * @param instr erase instruction * @param region erase region
@@ -2397,7 +2397,7 @@ static int onenand_multiblock_erase(struct mtd_info *mtd,/** -* onenand_block_by_block_erase - [Internal] erase block(s) using regular erase +* onenand_block_by_block_erase - [INTERN] erase block(s) using regular erase * @param mtd MTD device structure * @param instr erase instruction * @param region erase region
@@ -2922,7 +2922,7 @@ static int onenand_otp_command(struct mtd_info *mtd, int cmd, loff_t addr, }/** -* onenand_otp_write_oob_nolock - [Internal] OneNAND write out-of-band, specific to OTP +* onenand_otp_write_oob_nolock - [INTERN] OneNAND write out-of-band, specific to OTP * @param mtd MTD device structure * @param to offset to write to * @param len number of bytes to write
drivers/mtd/sm_ftl.c +1 -1
@@ -138,7 +138,7 @@ static int sm_get_lba(uint8_t *lba)if ((lba[0 ] &0xF8 ) !=0x10 )return -2 ; -/* check parity - endianess doesn't matter */ +/* check parity - endianness doesn't matter */ if (hweight16 (*(uint16_t *)lba) &1 )return -2 ;
include/linux/mtd/mtd.h +1 -1
@@ -172,7 +172,7 @@ struct mtd_info {const char *name;int index; -/* ecc layout structure pointer - read only ! */ +/* ECC layout structure pointer - read only! */ struct nand_ecclayout *ecclayout;/* Data for variable erase regions. If numeraseregions is zero,
include/linux/mtd/nand.h +25 -25
118 lines not on this page · raw message
Signature · 1 line
1.7.0.4
Quoted 15 lines · Brian Norris
Therefor -> Therefore
[Intern], [Internal] -> [INTERN]
[REPLACABLE] -> [REPLACEABLE]
syndrom, syndom -> syndrome
ecc -> ECC
buswith -> buswidth
endianess -> endianness
dont -> don't
occures -> occurs
independend -> independent
wihin -> within
erease -> erase
blockes -> blocks
...
Quoted 3 lines
(This is based on Artem's l2-mtd-2.6 git tree)
Signed-off-by Brian Norris <[email protected]>
Pushed, thanks!
Signature · 2 lines
Best Regards, Artem Bityutskiy (Битюцкий Артём)