summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Matcovschi <olegm@lab126.com>2013-05-23 17:11:06 -0700
committerChris Ball <cjb@laptop.org>2013-06-27 11:11:04 -0400
commit294bf86972d60fe41c288c20d32e49427e47ea40 (patch)
tree17812ba1908d26f4e297a974d8a6b9ef13904bda
parent8c0c40d477db2863e2746e6a995980113f725c0d (diff)
downloadmmc-utils-294bf86972d60fe41c288c20d32e49427e47ea40.tar.gz
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>
-rw-r--r--mmc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mmc.h b/mmc.h
index 5285865..a007b6b 100644
--- a/mmc.h
+++ b/mmc.h
@@ -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 */