]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
UBI: make ubi-header.h local
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Sat, 16 Feb 2008 13:42:52 +0000 (15:42 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 17 Apr 2008 08:31:58 +0000 (11:31 +0300)
The new trend in linux is not to store headers which define
on-media format in the include/ directory, but instead, store
them locally. This is because these headers "do not define any
kernel<->userspace interface".

Do so for UBI as well.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/ubi-media.h [moved from include/mtd/ubi-header.h with 99% similarity]
drivers/mtd/ubi/ubi.h
include/mtd/Kbuild

similarity index 99%
rename from include/mtd/ubi-header.h
rename to drivers/mtd/ubi/ubi-media.h
index 292f916ea5642178947204ba04a1d0f2d5b26c64..c3185d9fd048836dfd09c52e266e1875e9571337 100644 (file)
 
 /*
  * This file defines the layout of UBI headers and all the other UBI on-flash
- * data structures. May be included by user-space.
+ * data structures.
  */
 
-#ifndef __UBI_HEADER_H__
-#define __UBI_HEADER_H__
+#ifndef __UBI_MEDIA_H__
+#define __UBI_MEDIA_H__
 
 #include <asm/byteorder.h>
 
@@ -369,4 +369,4 @@ struct ubi_vtbl_record {
        __be32  crc;
 } __attribute__ ((packed));
 
-#endif /* !__UBI_HEADER_H__ */
+#endif /* !__UBI_MEDIA_H__ */
index a548c1d28fa818a5485aa5524a2527eff269edf0..28de80fcde553d8e0870b76e364e634403e5596f 100644 (file)
 #include <linux/string.h>
 #include <linux/vmalloc.h>
 #include <linux/mtd/mtd.h>
-
-#include <mtd/ubi-header.h>
 #include <linux/mtd/ubi.h>
 
+#include "ubi-media.h"
 #include "scan.h"
 #include "debug.h"
 
index 4d46b3bdebd86ce579c0c057e53f28be412651af..8eb018f96002d84f7ae3a0810023cffc65333f04 100644 (file)
@@ -3,5 +3,4 @@ header-y += jffs2-user.h
 header-y += mtd-abi.h
 header-y += mtd-user.h
 header-y += nftl-user.h
-header-y += ubi-header.h
 header-y += ubi-user.h