mmc-utils: Remove dependency on linux/major.h.
We require only MMC_BLOCK_MAJOR which is constant. Signed-off-by: Oleg Matcovschi <olegm@lab126.com> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
1 parent
8c0c40d477
commit
294bf86972
1 file changed
+3
-1
@@ -16,11 +16,13 @@
|
||||
|
||||
#include <asm-generic/int-ll64.h>
|
||||
#include <linux/mmc/ioctl.h>
|
||||
#include <linux/major.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#define CHECK(expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } }
|
||||
|
||||
/* From kernel linux/major.h */
|
||||
#define MMC_BLOCK_MAJOR 179
|
||||
|
||||
/* From kernel linux/mmc/mmc.h */
|
||||
#define MMC_SWITCH 6 /* ac [31:0] See below R1b */
|
||||
#define MMC_SEND_EXT_CSD 8 /* adtc R1 */
|
||||
|
||||
Reference in new issue
Block a user