Commit 294bf869 authored by Oleg Matcovschi's avatar Oleg Matcovschi Committed by Chris Ball
Browse files

mmc-utils: Remove dependency on linux/major.h.



We require only MMC_BLOCK_MAJOR which is constant.
Signed-off-by: default avatarOleg Matcovschi <olegm@lab126.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 8c0c40d4
......@@ -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 */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment