mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-03 04:42:13 +00:00
drm/amd/display: Remove unused register read in program_pwl
Signed-off-by: Harry Wentland <harry.wentland@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
b310b081ad
commit
a696dc208f
1 changed files with 0 additions and 3 deletions
|
@ -1181,7 +1181,6 @@ static void program_pwl(
|
||||||
struct dce_transform *xfm_dce,
|
struct dce_transform *xfm_dce,
|
||||||
const struct pwl_params *params)
|
const struct pwl_params *params)
|
||||||
{
|
{
|
||||||
uint32_t value;
|
|
||||||
int retval;
|
int retval;
|
||||||
uint8_t max_tries = 10;
|
uint8_t max_tries = 10;
|
||||||
uint8_t counter = 0;
|
uint8_t counter = 0;
|
||||||
|
@ -1198,7 +1197,6 @@ static void program_pwl(
|
||||||
|
|
||||||
while (counter < max_tries) {
|
while (counter < max_tries) {
|
||||||
if (REG(DCFE_MEM_PWR_STATUS)) {
|
if (REG(DCFE_MEM_PWR_STATUS)) {
|
||||||
value = REG_READ(DCFE_MEM_PWR_STATUS);
|
|
||||||
REG_GET(DCFE_MEM_PWR_STATUS,
|
REG_GET(DCFE_MEM_PWR_STATUS,
|
||||||
DCP_REGAMMA_MEM_PWR_STATE,
|
DCP_REGAMMA_MEM_PWR_STATE,
|
||||||
&retval);
|
&retval);
|
||||||
|
@ -1207,7 +1205,6 @@ static void program_pwl(
|
||||||
break;
|
break;
|
||||||
++counter;
|
++counter;
|
||||||
} else {
|
} else {
|
||||||
value = REG_READ(DCFE_MEM_LIGHT_SLEEP_CNTL);
|
|
||||||
REG_GET(DCFE_MEM_LIGHT_SLEEP_CNTL,
|
REG_GET(DCFE_MEM_LIGHT_SLEEP_CNTL,
|
||||||
REGAMMA_LUT_MEM_PWR_STATE,
|
REGAMMA_LUT_MEM_PWR_STATE,
|
||||||
&retval);
|
&retval);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue