drm/amd/display: refactor reg_update
authorTony Cheng <tony.cheng@amd.com>
Wed, 24 Oct 2018 19:09:46 +0000 (15:09 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 14 Jan 2019 20:38:40 +0000 (15:38 -0500)
commit44788bbc309ba687ac239a77a2399d879c6d5f18
treee1ea1eb43de8c4b25e285fb6fa38fcd75a998123
parent29c8f23425e07092f25db3b57c1d8dcefc532290
drm/amd/display: refactor reg_update

[why]
separate register access from logic to allow us abstract register sequences

[how]
consolidate mask and value first then apply to register.

Signed-off-by: Tony Cheng <tony.cheng@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_helper.c