diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-19 11:01:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-19 11:01:58 -0400 |
commit | ab5cfd2aa3af40b35d7a948de8e279dc82c5b9f6 (patch) | |
tree | 3684691bcc62688cecd1f90f7ddcc052e2e601a5 /drivers/mtd/mtdchar.c | |
parent | 833f73299fdf4497af1552e219e95661f4d2cdca (diff) | |
parent | ea59830db01b6b3d6bda9f84e3d272a346115e8e (diff) |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6:
[MTD] Use SEEK_{SET,CUR,END} instead of hardcoded values in mtdchar lseek()
MTD: Fix bug in fixup_convert_atmel_pri
[JFFS2][SUMMARY] Fix a summary collecting bug.
[PATCH] [MTD] DEVICES: Fill more device IDs in the structure of m25p80
MTD: Add lock/unlock operations for Atmel AT49BV6416
MTD: Convert Atmel PRI information to AMD format
fs/jffs2/xattr.c: remove dead code
[PATCH] [MTD] Maps: Add dependency on alternate probe methods to physmap
[PATCH] MTD: Add Macronix MX29F040 to JEDEC
[MTD] Fixes of performance and stability issues in CFI driver.
block2mtd.c: Make kernel boot command line arguments work (try 4)
[MTD NAND] Fix lookup error in nand_get_flash_type()
remove #error on !PCI from pmc551.c
MTD: [NAND] Fix the sharpsl driver after breakage from a core conversion
[MTD] NAND: OOB buffer offset fixups
make fs/jffs2/nodelist.c:jffs2_obsolete_node_frag() static
[PATCH] [MTD] NAND: fix dead URL in Kconfig
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index fb8b4f7e48d..5b6acfcb2b8 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -62,15 +62,12 @@ static loff_t mtd_lseek (struct file *file, loff_t offset, int orig) | |||
62 | struct mtd_info *mtd = mfi->mtd; | 62 | struct mtd_info *mtd = mfi->mtd; |
63 | 63 | ||
64 | switch (orig) { | 64 | switch (orig) { |
65 | case 0: | 65 | case SEEK_SET: |
66 | /* SEEK_SET */ | ||
67 | break; | 66 | break; |
68 | case 1: | 67 | case SEEK_CUR: |
69 | /* SEEK_CUR */ | ||
70 | offset += file->f_pos; | 68 | offset += file->f_pos; |
71 | break; | 69 | break; |
72 | case 2: | 70 | case SEEK_END: |
73 | /* SEEK_END */ | ||
74 | offset += mtd->size; | 71 | offset += mtd->size; |
75 | break; | 72 | break; |
76 | default: | 73 | default: |