From: Andy Shevchenko <andy.shevchenko@gmail.com>
To: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Hunter Adrian <adrian.hunter@nokia.com>,
Chris Ball <cjb@laptop.org>,
Andrew Morton <akpm@linux-foundation.org>,
Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
Subject: [PATCHv6 1/3] mmc_test: use API to check card type
Date: Tue, 7 Sep 2010 15:35:24 +0300 [thread overview]
Message-ID: <09f59cd98b59bf521a5866ab58c216e0a0347a6c.1283862780.git.ext-andriy.shevchenko@nokia.com> (raw)
There are methods to check card type. Let's use them instead of direct checking
type bits.
Signed-off-by: Andy Shevchenko <ext-andriy.shevchenko@nokia.com>
---
drivers/mmc/card/mmc_test.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/card/mmc_test.c b/drivers/mmc/card/mmc_test.c
index b992725..cd8edf4 100644
--- a/drivers/mmc/card/mmc_test.c
+++ b/drivers/mmc/card/mmc_test.c
@@ -1977,7 +1977,7 @@ static int mmc_test_probe(struct mmc_card *card)
{
int ret;
- if ((card->type != MMC_TYPE_MMC) && (card->type != MMC_TYPE_SD))
+ if (!mmc_card_mmc(card) && !mmc_card_sd(card))
return -ENODEV;
ret = device_create_file(&card->dev, &dev_attr_test);
--
1.6.3.3
next reply other threads:[~2010-09-07 12:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-07 12:35 Andy Shevchenko [this message]
2010-09-07 12:35 ` [PATCHv6 2/3] mmc_test: change simple_strtol() to strict_strtol() Andy Shevchenko
2010-09-07 12:35 ` [PATCHv6 3/3] mmc_test: collect data and show it via sysfs by demand Andy Shevchenko
2010-09-07 22:27 ` Andrew Morton
2010-09-07 22:58 ` Chris Ball
2010-09-08 9:14 ` Andy Shevchenko
2010-09-09 3:59 ` Greg KH
2010-09-09 5:51 ` Andy Shevchenko
2010-09-08 9:08 ` Andy Shevchenko
2010-09-08 19:50 ` Andrew Morton
2010-09-08 14:44 ` hong zhang
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=09f59cd98b59bf521a5866ab58c216e0a0347a6c.1283862780.git.ext-andriy.shevchenko@nokia.com \
--to=andy.shevchenko@gmail.com \
--cc=adrian.hunter@nokia.com \
--cc=akpm@linux-foundation.org \
--cc=cjb@laptop.org \
--cc=ext-andriy.shevchenko@nokia.com \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®