aboutsummaryrefslogtreecommitdiff
path: root/nanddump.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-09-09 10:11:49 -0700
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 16:11:28 +0300
commite413d17f8bd6c680a4f792006932a070ce504120 (patch)
tree974397f7dd7a27120efe7ecb7f994a8556f49d0c /nanddump.c
parentbf01f2960ba82468b1b25f00e044fd0c3ee0770a (diff)
mtd-utils: update mtd-abi.h
Kernel ABI header added a new ioctl, killed an old one, and exposed OOB modes to user-space. Plus, it added a lot of documentation. We have some trivial name changes for some MTD mode constants as well. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'nanddump.c')
-rw-r--r--nanddump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nanddump.c b/nanddump.c
index 7a24c0d..be458c6 100644
--- a/nanddump.c
+++ b/nanddump.c
@@ -336,7 +336,7 @@ int main(int argc, char * const argv[])
readbuf = xmalloc(sizeof(readbuf) * mtd.min_io_size);
if (noecc) {
- if (ioctl(fd, MTDFILEMODE, MTD_MODE_RAW) != 0) {
+ if (ioctl(fd, MTDFILEMODE, MTD_FILE_MODE_RAW) != 0) {
perror("MTDFILEMODE");
goto closeall;
}