diff options
author | Jackey Shen <jackey.shen@amd.com> | 2013-05-17 05:17:43 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-09-25 21:51:52 -0400 |
commit | 71ef1ea418ee45a4f939d53a02410627b394c336 (patch) | |
tree | 7a1088ef77634c237d4b5c14f66a1aad6a880012 | |
parent | fbd986cd420d1deeabf1039ec4e74075a5639db5 (diff) |
mmc: core: clean up duplicate macros
Clean up the duplicate macros:
mmc_sd_card_uhs -> mmc_card_uhs
mmc_sd_card_set_uhs -> mmc_card_set_uhs
Signed-off-by: Jackey Shen <jackey.shen@amd.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/core/bus.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/rtsx_pci_sdmmc.c | 2 | ||||
-rw-r--r-- | include/linux/mmc/card.h | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index 704bf66f5873..cdca8a70da38 100644 --- a/drivers/mmc/core/bus.c +++ b/drivers/mmc/core/bus.c | |||
@@ -340,7 +340,7 @@ int mmc_add_card(struct mmc_card *card) | |||
340 | break; | 340 | break; |
341 | } | 341 | } |
342 | 342 | ||
343 | if (mmc_sd_card_uhs(card) && | 343 | if (mmc_card_uhs(card) && |
344 | (card->sd_bus_speed < ARRAY_SIZE(uhs_speeds))) | 344 | (card->sd_bus_speed < ARRAY_SIZE(uhs_speeds))) |
345 | uhs_bus_speed_mode = uhs_speeds[card->sd_bus_speed]; | 345 | uhs_bus_speed_mode = uhs_speeds[card->sd_bus_speed]; |
346 | 346 | ||
diff --git a/drivers/mmc/host/rtsx_pci_sdmmc.c b/drivers/mmc/host/rtsx_pci_sdmmc.c index 375a880e0c5f..e2ab12473f97 100644 --- a/drivers/mmc/host/rtsx_pci_sdmmc.c +++ b/drivers/mmc/host/rtsx_pci_sdmmc.c | |||
@@ -364,7 +364,7 @@ static int sd_rw_multi(struct realtek_pci_sdmmc *host, struct mmc_request *mrq) | |||
364 | struct mmc_host *mmc = host->mmc; | 364 | struct mmc_host *mmc = host->mmc; |
365 | struct mmc_card *card = mmc->card; | 365 | struct mmc_card *card = mmc->card; |
366 | struct mmc_data *data = mrq->data; | 366 | struct mmc_data *data = mrq->data; |
367 | int uhs = mmc_sd_card_uhs(card); | 367 | int uhs = mmc_card_uhs(card); |
368 | int read = (data->flags & MMC_DATA_READ) ? 1 : 0; | 368 | int read = (data->flags & MMC_DATA_READ) ? 1 : 0; |
369 | u8 cfg2, trans_mode; | 369 | u8 cfg2, trans_mode; |
370 | int err; | 370 | int err; |
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index 842de3e21e70..f42cdbd8ac21 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h | |||
@@ -420,7 +420,6 @@ static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) | |||
420 | #define mmc_card_blockaddr(c) ((c)->state & MMC_STATE_BLOCKADDR) | 420 | #define mmc_card_blockaddr(c) ((c)->state & MMC_STATE_BLOCKADDR) |
421 | #define mmc_card_ddr_mode(c) ((c)->state & MMC_STATE_HIGHSPEED_DDR) | 421 | #define mmc_card_ddr_mode(c) ((c)->state & MMC_STATE_HIGHSPEED_DDR) |
422 | #define mmc_card_uhs(c) ((c)->state & MMC_STATE_ULTRAHIGHSPEED) | 422 | #define mmc_card_uhs(c) ((c)->state & MMC_STATE_ULTRAHIGHSPEED) |
423 | #define mmc_sd_card_uhs(c) ((c)->state & MMC_STATE_ULTRAHIGHSPEED) | ||
424 | #define mmc_card_ext_capacity(c) ((c)->state & MMC_CARD_SDXC) | 423 | #define mmc_card_ext_capacity(c) ((c)->state & MMC_CARD_SDXC) |
425 | #define mmc_card_removed(c) ((c) && ((c)->state & MMC_CARD_REMOVED)) | 424 | #define mmc_card_removed(c) ((c) && ((c)->state & MMC_CARD_REMOVED)) |
426 | #define mmc_card_doing_bkops(c) ((c)->state & MMC_STATE_DOING_BKOPS) | 425 | #define mmc_card_doing_bkops(c) ((c)->state & MMC_STATE_DOING_BKOPS) |
@@ -432,7 +431,6 @@ static inline void __maybe_unused remove_quirk(struct mmc_card *card, int data) | |||
432 | #define mmc_card_set_blockaddr(c) ((c)->state |= MMC_STATE_BLOCKADDR) | 431 | #define mmc_card_set_blockaddr(c) ((c)->state |= MMC_STATE_BLOCKADDR) |
433 | #define mmc_card_set_ddr_mode(c) ((c)->state |= MMC_STATE_HIGHSPEED_DDR) | 432 | #define mmc_card_set_ddr_mode(c) ((c)->state |= MMC_STATE_HIGHSPEED_DDR) |
434 | #define mmc_card_set_uhs(c) ((c)->state |= MMC_STATE_ULTRAHIGHSPEED) | 433 | #define mmc_card_set_uhs(c) ((c)->state |= MMC_STATE_ULTRAHIGHSPEED) |
435 | #define mmc_sd_card_set_uhs(c) ((c)->state |= MMC_STATE_ULTRAHIGHSPEED) | ||
436 | #define mmc_card_set_ext_capacity(c) ((c)->state |= MMC_CARD_SDXC) | 434 | #define mmc_card_set_ext_capacity(c) ((c)->state |= MMC_CARD_SDXC) |
437 | #define mmc_card_set_removed(c) ((c)->state |= MMC_CARD_REMOVED) | 435 | #define mmc_card_set_removed(c) ((c)->state |= MMC_CARD_REMOVED) |
438 | #define mmc_card_set_doing_bkops(c) ((c)->state |= MMC_STATE_DOING_BKOPS) | 436 | #define mmc_card_set_doing_bkops(c) ((c)->state |= MMC_STATE_DOING_BKOPS) |