diff options
author | Oleg Matcovschi <olegm@lab126.com> | 2013-05-23 17:11:06 -0700 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-06-27 11:11:04 -0400 |
commit | 294bf86972d60fe41c288c20d32e49427e47ea40 (patch) | |
tree | 17812ba1908d26f4e297a974d8a6b9ef13904bda | |
parent | 8c0c40d477db2863e2746e6a995980113f725c0d (diff) | |
download | mmc-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.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 */ |