memory: emif: Put constant in comparison on the right side
authorKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 07:40:21 +0000 (09:40 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Fri, 24 Jul 2020 14:18:32 +0000 (16:18 +0200)
Fixes checkpatch warning:

    WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/emif.c

index 9d9127bf2a5906a9109a74f31b350245ebfe165b..fb2bb15053a74ce386a69f4cc2ca6e60ae6d51d0 100644 (file)
@@ -282,7 +282,7 @@ static void set_lpmode(struct emif_data *emif, u8 lpmode)
         * the EMIF_PWR_MGMT_CTRL[10:8] REG_LP_MODE bit field to 0x4.
         */
        if ((emif->plat_data->ip_rev == EMIF_4D) &&
-           (EMIF_LP_MODE_PWR_DN == lpmode)) {
+           (lpmode == EMIF_LP_MODE_PWR_DN)) {
                WARN_ONCE(1,
                          "REG_LP_MODE = LP_MODE_PWR_DN(4) is prohibited by"
                          "erratum i743 switch to LP_MODE_SELF_REFRESH(2)\n");