add mmc_card_sd_combo() macro for sd combo type card and use mmc_card_* macro to simplify instead of comparing card->type Changes compared to v1: - Reviewed v1 by Uffe. - Split into two. One for the core and one for the mxcmmc driver. * previous discussion https://patchwork.kernel.org/project/linux-mmc/patch/20220705015729.14455-1-sh043.lee@xxxxxxxxxxx/ Seunghui Lee (2): mmc: core: use mmc_card_* macro and add it for sd_combo mmc: host: use mmc_card_sdio macro drivers/mmc/core/block.c | 4 ++-- drivers/mmc/core/bus.c | 4 ++-- drivers/mmc/core/sd.c | 2 +- drivers/mmc/core/sdio.c | 16 ++++++++-------- drivers/mmc/host/mxcmmc.c | 2 +- include/linux/mmc/card.h | 1 + 6 files changed, 15 insertions(+), 14 deletions(-) -- 2.29.0