mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
memory: emif: Put constant in comparison on the right side
Fixes checkpatch warning: WARNING: Comparisons should place the constant on the right side of the test Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
This commit is contained in:
parent
a53f7f08c0
commit
ec6652bda5
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue