drm/amdgpu: Refine function name and function args
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 14 Aug 2018 05:32:30 +0000 (13:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:00 +0000 (11:11 -0500)
commit1112a46b48b74766bd957742c853c8a582a81991
treed51b76c2c7c51f44fc8beadbce30695f3ede2527
parent8ab5617279507044682248f47c3afa9f753d8fe3
drm/amdgpu: Refine function name and function args

There are no any logical changes here.

1. change function names:
   amdgpu_device_ip_late_set_pg/cg_state to
   amdgpu_device_set_pg/cg_state.
2. add a function argument cg/pg_state, so
   we can enable/disable cg/pg through those functions

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c