diff options
author | Pierre Tardy <pierre.tardy@intel.com> | 2011-02-06 13:03:46 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-03-15 13:48:33 -0400 |
commit | 57f0adc7eaaf4315d568e72069dbe48aa7e20995 (patch) | |
tree | 233c66fd4f21b977f532702ce9427023b2e53e09 /include/linux/mmc | |
parent | 66c036e0142fed2484d58a2d3c7a4d21ba32b6a6 (diff) |
mmc: add per device quirk placeholder
Some cards have quirks valid for every platforms using current
platform quirk hooks leads to a lot of code and debug duplication.
So we inspire a bit from what exists in PCI subsystem and do our own
per vendorid/deviceid quirk. We still drop the complexity of the pci
quirk system (with special section tables, and so on).
That can be added later if needed.
Signed-off-by: Pierre Tardy <pierre.tardy@intel.com>
Acked-by: Linus Walleij <linus.walleij@stericsson.com>
Acked-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'include/linux/mmc')
-rw-r--r-- | include/linux/mmc/card.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 4652cf9c5442..ad7413854f79 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h | |||
@@ -151,6 +151,8 @@ struct mmc_card { | |||
151 | struct dentry *debugfs_root; | 151 | struct dentry *debugfs_root; |
152 | }; | 152 | }; |
153 | 153 | ||
154 | void mmc_fixup_device(struct mmc_card *dev); | ||
155 | |||
154 | #define mmc_card_mmc(c) ((c)->type == MMC_TYPE_MMC) | 156 | #define mmc_card_mmc(c) ((c)->type == MMC_TYPE_MMC) |
155 | #define mmc_card_sd(c) ((c)->type == MMC_TYPE_SD) | 157 | #define mmc_card_sd(c) ((c)->type == MMC_TYPE_SD) |
156 | #define mmc_card_sdio(c) ((c)->type == MMC_TYPE_SDIO) | 158 | #define mmc_card_sdio(c) ((c)->type == MMC_TYPE_SDIO) |