mbox series

[v2,0/2] mmc: use mmc_card_* macro and add it for sd_combo

Message ID 20220713033635.28432-1-sh043.lee@samsung.com (mailing list archive)
Headers show
Series mmc: use mmc_card_* macro and add it for sd_combo | expand

Message

이승희 July 13, 2022, 3:36 a.m. UTC
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@samsung.com/

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(-)

Comments

Ulf Hansson July 13, 2022, 10:55 a.m. UTC | #1
On Wed, 13 Jul 2022 at 05:04, Seunghui Lee <sh043.lee@samsung.com> wrote:
>
> 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@samsung.com/
>
> 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(-)
>

The series applied for next, thanks!

Kind regards
Uffe