diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mmc/card.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/linux/mmc/card.h b/include/linux/mmc/card.h index ce2a0aa79425..b652076be866 100644 --- a/include/linux/mmc/card.h +++ b/include/linux/mmc/card.h @@ -665,12 +665,10 @@ static inline bool mmc_card_configured_manual_bkops(const struct mmc_card *c) return c->ext_csd.man_bkops_en & EXT_CSD_BKOPS_MANUAL_EN; } -/* - * By software design, auto_bkops will be enabled on the device if it supports - * it. Therefore, testing if a card is configured to run bkops is synonymous - * to checking if it supports bkops - */ -#define mmc_card_configured_auto_bkops(c) mmc_card_support_auto_bkops(c) +static inline bool mmc_card_configured_auto_bkops(const struct mmc_card *c) +{ + return c->ext_csd.man_bkops_en & EXT_CSD_BKOPS_AUTO_EN; +} #define mmc_card_name(c) ((c)->cid.prod_name) #define mmc_card_id(c) (dev_name(&(c)->dev)) |
