drm/amd/display: Typo for return check value.
authorYongqiang Sun <yongqiang.sun@amd.com>
Thu, 25 Oct 2018 15:32:26 +0000 (11:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Nov 2018 20:27:37 +0000 (15:27 -0500)
[Why]
Typo for return check value.

[How]
Correct one should be "return enable ? true : false;"

Signed-off-by: Yongqiang Sun <yongqiang.sun@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c

index 4254e7e1a509674efef528d5f647c00740caa0c3..c7d1e678ebf5b1a22d2fc35e8b83e05d2ea50159 100644 (file)
@@ -100,7 +100,7 @@ bool hububu1_is_allow_self_refresh_enabled(struct hubbub *hubbub)
        REG_GET(DCHUBBUB_ARB_DRAM_STATE_CNTL,
                        DCHUBBUB_ARB_ALLOW_SELF_REFRESH_FORCE_ENABLE, &enable);
 
-       return true ? false : enable;
+       return enable ? true : false;
 }