linux-mmc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oleg Matcovschi <olegm@lab126.com>
To: linux-mmc@vger.kernel.org, cjb@laptop.org
Cc: Oleg Matcovschi <olegm@lab126.com>
Subject: [PATCH 1/2] mmc-utils: Remove dependency on linux/major.h.
Date: Thu, 23 May 2013 17:11:06 -0700	[thread overview]
Message-ID: <1369354267-18632-1-git-send-email-olegm@lab126.com> (raw)

We require only MMC_BLOCK_MAJOR which is constant.

Signed-off-by: Oleg Matcovschi <olegm@lab126.com>
---
 mmc.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/mmc.h b/mmc.h
index c863751..48a221c 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  */
-- 
1.7.4.1


             reply	other threads:[~2013-05-24  0:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-24  0:11 Oleg Matcovschi [this message]
2013-05-24  0:11 ` [PATCH 2/2] mmc-utils: Correctly handle CARD_TYPE Oleg Matcovschi
2013-06-27 14:42   ` Chris Ball
2013-06-27 14:41 ` [PATCH 1/2] mmc-utils: Remove dependency on linux/major.h Chris Ball

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369354267-18632-1-git-send-email-olegm@lab126.com \
    --to=olegm@lab126.com \
    --cc=cjb@laptop.org \
    --cc=linux-mmc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).