diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-08-30 21:45:39 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:26:20 -0400 |
commit | 905c6bcdb42616da717a9bd6c0c5870dbd90b09e (patch) | |
tree | 211f0068cb67463d4e2120c5457a81b4b6e56ff9 /drivers/mtd/onenand | |
parent | c46f6483d21e93400e4a110de7902830173d53b0 (diff) |
mtd: move mtd_oob_mode_t to shared kernel/user space
We will want to use the MTD_OOB_{PLACE,AUTO,RAW} modes in user-space
applications through the introduction of new ioctls, so we should make
this enum a shared type.
This enum is now anonymous.
Artem: tweaked the patch.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r-- | drivers/mtd/onenand/onenand_base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index de98791f8101..493901a59e6e 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c | |||
@@ -1351,7 +1351,7 @@ static int onenand_read_oob_nolock(struct mtd_info *mtd, loff_t from, | |||
1351 | struct mtd_ecc_stats stats; | 1351 | struct mtd_ecc_stats stats; |
1352 | int read = 0, thislen, column, oobsize; | 1352 | int read = 0, thislen, column, oobsize; |
1353 | size_t len = ops->ooblen; | 1353 | size_t len = ops->ooblen; |
1354 | mtd_oob_mode_t mode = ops->mode; | 1354 | unsigned int mode = ops->mode; |
1355 | u_char *buf = ops->oobbuf; | 1355 | u_char *buf = ops->oobbuf; |
1356 | int ret = 0, readcmd; | 1356 | int ret = 0, readcmd; |
1357 | 1357 | ||
@@ -2074,7 +2074,7 @@ static int onenand_write_oob_nolock(struct mtd_info *mtd, loff_t to, | |||
2074 | u_char *oobbuf; | 2074 | u_char *oobbuf; |
2075 | size_t len = ops->ooblen; | 2075 | size_t len = ops->ooblen; |
2076 | const u_char *buf = ops->oobbuf; | 2076 | const u_char *buf = ops->oobbuf; |
2077 | mtd_oob_mode_t mode = ops->mode; | 2077 | unsigned int mode = ops->mode; |
2078 | 2078 | ||
2079 | to += ops->ooboffs; | 2079 | to += ops->ooboffs; |
2080 | 2080 | ||