diff options
author | Deepak R Varma <mh12gx2825@gmail.com> | 2020-11-02 20:36:41 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-11-02 21:35:48 +0100 |
commit | 8e607d7e27d87484f652218d7a10d7446ab2cbe7 (patch) | |
tree | 1bbac8afdc331ee9225bdcdb703ee8f738b22c48 /drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | |
parent | drm/amdgpu/jpeg: use "*" adjacent to data name (diff) | |
download | linux-8e607d7e27d87484f652218d7a10d7446ab2cbe7.tar.xz linux-8e607d7e27d87484f652218d7a10d7446ab2cbe7.zip |
drm/amdgpu/sdma: use "*" adjacent to data name
When declaring pointer data, the "*" symbol should be used adjacent to
the data name as per the coding 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index ae6158456094..cb5a6f1437f8 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -129,7 +129,7 @@ static void sdma_v5_2_destroy_inst_ctx(struct amdgpu_device *adev) break; } - memset((void*)adev->sdma.instance, 0, + memset((void *)adev->sdma.instance, 0, sizeof(struct amdgpu_sdma_instance) * AMDGPU_MAX_SDMA_INSTANCES); } @@ -188,8 +188,8 @@ static int sdma_v5_2_init_microcode(struct amdgpu_device *adev) for (i = 1; i < adev->sdma.num_instances; i++) { if (adev->asic_type >= CHIP_SIENNA_CICHLID && adev->asic_type <= CHIP_DIMGREY_CAVEFISH) { - memcpy((void*)&adev->sdma.instance[i], - (void*)&adev->sdma.instance[0], + memcpy((void *)&adev->sdma.instance[i], + (void *)&adev->sdma.instance[0], sizeof(struct amdgpu_sdma_instance)); } else { snprintf(fw_name, sizeof(fw_name), "amdgpu/%s_sdma%d.bin", chip_name, i); |