Skip to content

Commit 61ecfa8

Browse files
KAGA-KOKOThomas Gleixner
authored andcommitted
[MTD] includes: Clean up trailing white spaces
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 03ead84 commit 61ecfa8

16 files changed

Lines changed: 118 additions & 118 deletions

File tree

‎include/linux/mtd/bbm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
* @param version version read from the bbt page during scan
3030
* @param len length of the pattern, if 0 no pattern check is performed
3131
* @param maxblocks maximum number of blocks to search for a bbt. This number of
32-
* blocks is reserved at the end of the device
32+
* blocks is reserved at the end of the device
3333
* where the tables are written.
3434
* @param reserved_block_code if non-0, this pattern denotes a reserved
3535
* (rather than bad) block in the stored bbt

‎include/linux/mtd/blktrans.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* $Id: blktrans.h,v 1.5 2003/06/23 12:00:08 dwmw2 Exp $
2+
* $Id: blktrans.h,v 1.6 2005/11/07 11:14:54 gleixner Exp $
33
*
44
* (C) 2003 David Woodhouse <dwmw2@infradead.org>
55
*
@@ -67,6 +67,6 @@ extern int register_mtd_blktrans(struct mtd_blktrans_ops *tr);
6767
extern int deregister_mtd_blktrans(struct mtd_blktrans_ops *tr);
6868
extern int add_mtd_blktrans_dev(struct mtd_blktrans_dev *dev);
6969
extern int del_mtd_blktrans_dev(struct mtd_blktrans_dev *dev);
70-
70+
7171

7272
#endif /* __MTD_TRANS_H__ */

‎include/linux/mtd/cfi.h‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
/* Common Flash Interface structures
2+
/* Common Flash Interface structures
33
* See http://support.intel.com/design/flash/technote/index.htm
4-
* $Id: cfi.h,v 1.55 2005/08/06 04:40:42 nico Exp $
4+
* $Id: cfi.h,v 1.56 2005/11/07 11:14:54 gleixner Exp $
55
*/
66

77
#ifndef __MTD_CFI_H__
@@ -82,8 +82,8 @@ static inline int cfi_interleave_supported(int i)
8282
}
8383

8484

85-
/* NB: these values must represents the number of bytes needed to meet the
86-
* device type (x8, x16, x32). Eg. a 32 bit device is 4 x 8 bytes.
85+
/* NB: these values must represents the number of bytes needed to meet the
86+
* device type (x8, x16, x32). Eg. a 32 bit device is 4 x 8 bytes.
8787
* These numbers are used in calculations.
8888
*/
8989
#define CFI_DEVICETYPE_X8 (8 / 8)
@@ -259,7 +259,7 @@ static inline uint32_t cfi_build_cmd_addr(uint32_t cmd_ofs, int interleave, int
259259
/*
260260
* Transforms the CFI command for the given geometry (bus width & interleave).
261261
* It looks too long to be inline, but in the common case it should almost all
262-
* get optimised away.
262+
* get optimised away.
263263
*/
264264
static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cfi_private *cfi)
265265
{
@@ -268,7 +268,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
268268
unsigned long onecmd;
269269
int i;
270270

271-
/* We do it this way to give the compiler a fighting chance
271+
/* We do it this way to give the compiler a fighting chance
272272
of optimising away all the crap for 'bankwidth' larger than
273273
an unsigned long, in the common case where that support is
274274
disabled */
@@ -279,7 +279,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
279279
wordwidth = map_bankwidth(map);
280280
words_per_bus = 1;
281281
}
282-
282+
283283
chip_mode = map_bankwidth(map) / cfi_interleave(cfi);
284284
chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map);
285285

@@ -298,7 +298,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
298298
break;
299299
}
300300

301-
/* Now replicate it across the size of an unsigned long, or
301+
/* Now replicate it across the size of an unsigned long, or
302302
just to the bus width as appropriate */
303303
switch (chips_per_word) {
304304
default: BUG();
@@ -314,7 +314,7 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
314314
;
315315
}
316316

317-
/* And finally, for the multi-word case, replicate it
317+
/* And finally, for the multi-word case, replicate it
318318
in all words in the structure */
319319
for (i=0; i < words_per_bus; i++) {
320320
val.x[i] = onecmd;
@@ -325,14 +325,14 @@ static inline map_word cfi_build_cmd(u_long cmd, struct map_info *map, struct cf
325325
#define CMD(x) cfi_build_cmd((x), map, cfi)
326326

327327

328-
static inline unsigned long cfi_merge_status(map_word val, struct map_info *map,
328+
static inline unsigned long cfi_merge_status(map_word val, struct map_info *map,
329329
struct cfi_private *cfi)
330330
{
331331
int wordwidth, words_per_bus, chip_mode, chips_per_word;
332332
unsigned long onestat, res = 0;
333333
int i;
334334

335-
/* We do it this way to give the compiler a fighting chance
335+
/* We do it this way to give the compiler a fighting chance
336336
of optimising away all the crap for 'bankwidth' larger than
337337
an unsigned long, in the common case where that support is
338338
disabled */
@@ -343,7 +343,7 @@ static inline unsigned long cfi_merge_status(map_word val, struct map_info *map,
343343
wordwidth = map_bankwidth(map);
344344
words_per_bus = 1;
345345
}
346-
346+
347347
chip_mode = map_bankwidth(map) / cfi_interleave(cfi);
348348
chips_per_word = wordwidth * cfi_interleave(cfi) / map_bankwidth(map);
349349

‎include/linux/mtd/doc2000.h‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
/*
1+
/*
22
* Linux driver for Disk-On-Chip devices
33
*
4-
* Copyright (C) 1999 Machine Vision Holdings, Inc.
4+
* Copyright (C) 1999 Machine Vision Holdings, Inc.
55
* Copyright (C) 2001-2003 David Woodhouse <dwmw2@infradead.org>
66
* Copyright (C) 2002-2003 Greg Ungerer <gerg@snapgear.com>
77
* Copyright (C) 2002-2003 SnapGear Inc
88
*
9-
* $Id: doc2000.h,v 1.24 2005/01/05 12:40:38 dwmw2 Exp $
9+
* $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $
1010
*
1111
* Released under GPL
1212
*/
@@ -75,10 +75,10 @@
7575
#define DoC_Mplus_CtrlConfirm 0x1076
7676
#define DoC_Mplus_Power 0x1fff
7777

78-
/* How to access the device?
79-
* On ARM, it'll be mmap'd directly with 32-bit wide accesses.
78+
/* How to access the device?
79+
* On ARM, it'll be mmap'd directly with 32-bit wide accesses.
8080
* On PPC, it's mmap'd and 16-bit wide.
81-
* Others use readb/writeb
81+
* Others use readb/writeb
8282
*/
8383
#if defined(__arm__)
8484
#define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2))))
@@ -172,18 +172,18 @@ struct DiskOnChip {
172172
unsigned long totlen;
173173
unsigned char ChipID; /* Type of DiskOnChip */
174174
int ioreg;
175-
175+
176176
unsigned long mfr; /* Flash IDs - only one type of flash per device */
177177
unsigned long id;
178178
int chipshift;
179179
char page256;
180180
char pageadrlen;
181181
char interleave; /* Internal interleaving - Millennium Plus style */
182182
unsigned long erasesize;
183-
183+
184184
int curfloor;
185185
int curchip;
186-
186+
187187
int numchips;
188188
struct Nand *chips;
189189
struct mtd_info *nextdoc;

‎include/linux/mtd/flashchip.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

2-
/*
2+
/*
33
* struct flchip definition
4-
*
5-
* Contains information about the location and state of a given flash device
4+
*
5+
* Contains information about the location and state of a given flash device
66
*
77
* (C) 2000 Red Hat. GPLd.
88
*
9-
* $Id: flashchip.h,v 1.17 2005/03/14 18:27:15 bjd Exp $
9+
* $Id: flashchip.h,v 1.18 2005/11/07 11:14:54 gleixner Exp $
1010
*
1111
*/
1212

@@ -15,11 +15,11 @@
1515

1616
/* For spinlocks. sched.h includes spinlock.h from whichever directory it
1717
* happens to be in - so we don't have to care whether we're on 2.2, which
18-
* has asm/spinlock.h, or 2.4, which has linux/spinlock.h
18+
* has asm/spinlock.h, or 2.4, which has linux/spinlock.h
1919
*/
2020
#include <linux/sched.h>
2121

22-
typedef enum {
22+
typedef enum {
2323
FL_READY,
2424
FL_STATUS,
2525
FL_CFI_QUERY,
@@ -45,7 +45,7 @@ typedef enum {
4545

4646

4747

48-
/* NOTE: confusingly, this can be used to refer to more than one chip at a time,
48+
/* NOTE: confusingly, this can be used to refer to more than one chip at a time,
4949
if they're interleaved. This can even refer to individual partitions on
5050
the same physical chip when present. */
5151

‎include/linux/mtd/ftl.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* $Id: ftl.h,v 1.6 2003/01/24 13:20:04 dwmw2 Exp $
3-
*
2+
* $Id: ftl.h,v 1.7 2005/11/07 11:14:54 gleixner Exp $
3+
*
44
* Derived from (and probably identical to):
55
* ftl.h 1.7 1999/10/25 20:23:17
66
*
@@ -12,7 +12,7 @@
1212
* Software distributed under the License is distributed on an "AS IS"
1313
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
1414
* the License for the specific language governing rights and
15-
* limitations under the License.
15+
* limitations under the License.
1616
*
1717
* The initial developer of the original code is David A. Hinds
1818
* <dahinds@users.sourceforge.net>. Portions created by David A. Hinds

‎include/linux/mtd/gen_probe.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/*
22
* (C) 2001, 2001 Red Hat, Inc.
33
* GPL'd
4-
* $Id: gen_probe.h,v 1.3 2004/10/20 22:10:33 dwmw2 Exp $
4+
* $Id: gen_probe.h,v 1.4 2005/11/07 11:14:54 gleixner Exp $
55
*/
66

77
#ifndef __LINUX_MTD_GEN_PROBE_H__
88
#define __LINUX_MTD_GEN_PROBE_H__
99

1010
#include <linux/mtd/flashchip.h>
11-
#include <linux/mtd/map.h>
11+
#include <linux/mtd/map.h>
1212
#include <linux/mtd/cfi.h>
1313
#include <linux/bitops.h>
1414

‎include/linux/mtd/jedec.h‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

22
/* JEDEC Flash Interface.
3-
* This is an older type of interface for self programming flash. It is
3+
* This is an older type of interface for self programming flash. It is
44
* commonly use in older AMD chips and is obsolete compared with CFI.
55
* It is called JEDEC because the JEDEC association distributes the ID codes
66
* for the chips.
77
*
88
* See the AMD flash databook for information on how to operate the interface.
99
*
10-
* $Id: jedec.h,v 1.3 2003/05/21 11:51:01 dwmw2 Exp $
10+
* $Id: jedec.h,v 1.4 2005/11/07 11:14:54 gleixner Exp $
1111
*/
1212

1313
#ifndef __LINUX_MTD_JEDEC_H__
@@ -33,16 +33,16 @@ struct jedec_flash_chip
3333
__u16 jedec;
3434
unsigned long size;
3535
unsigned long sectorsize;
36-
36+
3737
// *(__u8*)(base + (adder << addrshift)) = data << datashift
3838
// Address size = size << addrshift
3939
unsigned long base; // Byte 0 of the flash, will be unaligned
4040
unsigned int datashift; // Useful for 32bit/16bit accesses
4141
unsigned int addrshift;
4242
unsigned long offset; // linerized start. base==offset for unbanked, uninterleaved flash
43-
43+
4444
__u32 capabilities;
45-
45+
4646
// These markers are filled in by the flash_chip_scan function
4747
unsigned long start;
4848
unsigned long length;
@@ -51,16 +51,16 @@ struct jedec_flash_chip
5151
struct jedec_private
5252
{
5353
unsigned long size; // Total size of all the devices
54-
54+
5555
/* Bank handling. If sum(bank_fill) == size then this is linear flash.
5656
Otherwise the mapping has holes in it. bank_fill may be used to
57-
find the holes, but in the common symetric case
58-
bank_fill[0] == bank_fill[*], thus addresses may be computed
57+
find the holes, but in the common symetric case
58+
bank_fill[0] == bank_fill[*], thus addresses may be computed
5959
mathmatically. bank_fill must be powers of two */
6060
unsigned is_banked;
6161
unsigned long bank_fill[MAX_JEDEC_CHIPS];
62-
63-
struct jedec_flash_chip chips[MAX_JEDEC_CHIPS];
62+
63+
struct jedec_flash_chip chips[MAX_JEDEC_CHIPS];
6464
};
6565

6666
#endif

‎include/linux/mtd/map.h‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/* Overhauled routines for dealing with different mmap regions of flash */
3-
/* $Id: map.h,v 1.52 2005/05/25 10:29:41 gleixner Exp $ */
3+
/* $Id: map.h,v 1.54 2005/11/07 11:14:54 gleixner Exp $ */
44

55
#ifndef __LINUX_MTD_MAP_H__
66
#define __LINUX_MTD_MAP_H__
@@ -170,14 +170,14 @@ typedef union {
170170
to a chip probe routine -- either JEDEC or CFI probe or both -- via
171171
do_map_probe(). If a chip is recognised, the probe code will invoke the
172172
appropriate chip driver (if present) and return a struct mtd_info.
173-
At which point, you fill in the mtd->module with your own module
173+
At which point, you fill in the mtd->module with your own module
174174
address, and register it with the MTD core code. Or you could partition
175175
it and register the partitions instead, or keep it for your own private
176176
use; whatever.
177-
177+
178178
The mtd->priv field will point to the struct map_info, and any further
179-
private data required by the chip driver is linked from the
180-
mtd->priv->fldrv_priv field. This allows the map driver to get at
179+
private data required by the chip driver is linked from the
180+
mtd->priv->fldrv_priv field. This allows the map driver to get at
181181
the destructor function map->fldrv_destroy() when it's tired
182182
of living.
183183
*/
@@ -214,7 +214,7 @@ struct map_info {
214214
If there is no cache to care about this can be set to NULL. */
215215
void (*inval_cache)(struct map_info *, unsigned long, ssize_t);
216216

217-
/* set_vpp() must handle being reentered -- enable, enable, disable
217+
/* set_vpp() must handle being reentered -- enable, enable, disable
218218
must leave it enabled. */
219219
void (*set_vpp)(struct map_info *, int);
220220

@@ -353,7 +353,7 @@ static inline map_word map_word_ff(struct map_info *map)
353353
{
354354
map_word r;
355355
int i;
356-
356+
357357
if (map_bankwidth(map) < MAP_FF_LIMIT) {
358358
int bw = 8 * map_bankwidth(map);
359359
r.x[0] = (1 << bw) - 1;

0 commit comments

Comments
 (0)