[core] refactored to centralize the lookup and reset code

This commit is contained in:
Geoffrey McRae
2020-11-12 08:14:42 +11:00
parent edda7f02a5
commit cacf13399f
8 changed files with 103 additions and 76 deletions

View File

@@ -62,7 +62,6 @@ static int vega20_baco_set_state(struct amd_fake_dev *adev, enum BACO_STATE stat
uint32_t data;
vega20_baco_get_state(adev, &cur_state);
if (cur_state == state)
return 0;