]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/vcn: use "*" adjacent to data name
authorDeepak R Varma <mh12gx2825@gmail.com>
Mon, 2 Nov 2020 19:34:50 +0000 (01:04 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Nov 2020 20:35:41 +0000 (15:35 -0500)
When declaring pointer data, the "*" symbol should be used adjacent to
the data name as per the coding style standards. This resolves following
issues reported by checkpatch script:
ERROR: "foo *   bar" should be "foo *bar"
ERROR: "foo * bar" should be "foo *bar"
ERROR: "foo*            bar" should be "foo *bar"
ERROR: "(foo*)" should be "(foo *)"

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vcn_v2_0.c
drivers/gpu/drm/amd/amdgpu/vcn_v2_5.c
drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c

index 136270e4af7b7437623b5d3e30be148dabfb61d7..e285f9c9d460eeaf0c591cfbc18dedfa31e6885d 100644 (file)
@@ -800,7 +800,7 @@ static int vcn_v2_0_start_dpg_mode(struct amdgpu_device *adev, bool indirect)
        WREG32_SOC15(UVD, 0, mmUVD_POWER_STATUS, tmp);
 
        if (indirect)
-               adev->vcn.inst->dpg_sram_curr_addr = (uint32_t*)adev->vcn.inst->dpg_sram_cpu_addr;
+               adev->vcn.inst->dpg_sram_curr_addr = (uint32_t *)adev->vcn.inst->dpg_sram_cpu_addr;
 
        /* enable clock gating */
        vcn_v2_0_clock_gating_dpg_mode(adev, 0, indirect);
index 4094718ae27af49e2cfacadfa38b323848bf3763..b6e0f4ba6272c1d3c891cd87605dd8d4075b4646 100644 (file)
@@ -777,7 +777,7 @@ static int vcn_v2_5_start_dpg_mode(struct amdgpu_device *adev, int inst_idx, boo
        WREG32_SOC15(VCN, inst_idx, mmUVD_POWER_STATUS, tmp);
 
        if (indirect)
-               adev->vcn.inst[inst_idx].dpg_sram_curr_addr = (uint32_t*)adev->vcn.inst[inst_idx].dpg_sram_cpu_addr;
+               adev->vcn.inst[inst_idx].dpg_sram_curr_addr = (uint32_t *)adev->vcn.inst[inst_idx].dpg_sram_cpu_addr;
 
        /* enable clock gating */
        vcn_v2_5_clock_gating_dpg_mode(adev, 0, inst_idx, indirect);
index 9602593b4fc11a917cc698252cc255a467b80324..269002816109be7ac0d2b8d83a4b4e0b95c858df 100644 (file)
@@ -915,7 +915,7 @@ static int vcn_v3_0_start_dpg_mode(struct amdgpu_device *adev, int inst_idx, boo
        WREG32_SOC15(VCN, inst_idx, mmUVD_POWER_STATUS, tmp);
 
        if (indirect)
-               adev->vcn.inst[inst_idx].dpg_sram_curr_addr = (uint32_t*)adev->vcn.inst[inst_idx].dpg_sram_cpu_addr;
+               adev->vcn.inst[inst_idx].dpg_sram_curr_addr = (uint32_t *)adev->vcn.inst[inst_idx].dpg_sram_cpu_addr;
 
        /* enable clock gating */
        vcn_v3_0_clock_gating_dpg_mode(adev, 0, inst_idx, indirect);