target: linux: mtd: fix MTDREFRESH to an arbitrary high number

To make the ioctl number "stable", use an arbitrary high number to prevent
conflicts with new mtd ioctls that would push MTDREFRESH's number.

Also make mtd use the in-kernel mtd headers.

SVN-Revision: 28893
This commit is contained in:
Jonas Gorski
2011-11-09 21:16:36 +00:00
parent 44da6400cd
commit f53128f79b
14 changed files with 13 additions and 317 deletions

View File

@@ -321,7 +321,7 @@
#define MEMWRITEOOB64 _IOWR('M', 21, struct mtd_oob_buf64)
#define MEMREADOOB64 _IOWR('M', 22, struct mtd_oob_buf64)
#define MEMISLOCKED _IOR('M', 23, struct erase_info_user)
+#define MTDREFRESH _IO('M', 24)
+#define MTDREFRESH _IO('M', 50)
/*
* Obsolete legacy interface. Keep it in order not to break userspace