[patch 3] create macros in mtd.h for partitioning transition

Jörn Engel joern at wohnheim.fh-wedel.de
Tue Sep 3 08:25:29 EDT 2002


On Tue, 3 September 2002 14:14:49 +0200, Jörn Engel wrote:
> Whis one introduces MTD_DEVICE, MTD_PARTITION and friends.
> 
> Jörn

I really should remember to attach the stuff.
-------------- next part --------------
diff -Naur infradead/include/linux/mtd/mtd.h 0_staa_no_rodev/include/linux/mtd/mtd.h
--- infradead/include/linux/mtd/mtd.h	Tue Sep  3 14:02:04 2002
+++ 0_staa_no_rodev/include/linux/mtd/mtd.h	Tue Nov 27 15:55:12 2001
@@ -29,19 +29,7 @@
 
 #define MTD_CHAR_MAJOR 90
 #define MTD_BLOCK_MAJOR 31
-
-/* 16 devices with 16 partitions each */
 #define MAX_MTD_DEVICES 16
-#define MAX_MTD_PARTITIONS 16
-#define MAX_MTD_MINOR 256
-
-/*
- * FIXME: The "& 15" could be removed from MTD_DEVICE and MTD_MINOR, 
- * but we keep the extra safety for now.
- */
-#define MTD_DEVICE(minor) (((minor) >> 4) & 15 )
-#define MTD_PARTITION(minor) ((minor) & 15)
-#define MTD_MINOR(dev,part) ((((dev) & 15) << 4) | ((part) & 15))
 
 
 


More information about the linux-mtd mailing list