]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mmc: core: Replace with already defined values for readability
authorChanWoo Lee <cw9316.lee@samsung.com>
Wed, 6 Jul 2022 00:48:40 +0000 (09:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Oct 2022 05:54:38 +0000 (07:54 +0200)
commit 2e2b1f1970f7c50a1539531a36dd0bce5ea6a6a2 upstream.

SD_ROCR_S18A is already defined and is used to check the rocr value, so
let's replace with already defined values for readability.

Signed-off-by: ChanWoo Lee <cw9316.lee@samsung.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220706004840.24812-1-cw9316.lee@samsung.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/core/sd.c

index c6d7a0adde0db1ba9460622f0de3feeae4ca43df..3ea034745199411e23bd14d9a4283aefaea77f91 100644 (file)
@@ -799,7 +799,7 @@ try_again:
         * the CCS bit is set as well. We deliberately deviate from the spec in
         * regards to this, which allows UHS-I to be supported for SDSC cards.
         */
-       if (!mmc_host_is_spi(host) && rocr && (*rocr & 0x01000000)) {
+       if (!mmc_host_is_spi(host) && rocr && (*rocr & SD_ROCR_S18A)) {
                err = mmc_set_uhs_voltage(host, pocr);
                if (err == -EAGAIN) {
                        retries--;