]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu/sdma: use "*" adjacent to data name
authorDeepak R Varma <mh12gx2825@gmail.com>
Mon, 2 Nov 2020 19:36:41 +0000 (01:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Nov 2020 20:35:48 +0000 (15:35 -0500)
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>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c

index e82f49f62f6e6d81525197cb817323c0d960cd03..dc74ca2aa8926f2f8294c3faebea0bc64d985f34 100644 (file)
@@ -569,7 +569,7 @@ static void sdma_v4_0_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);
 }
 
@@ -643,8 +643,8 @@ static int sdma_v4_0_init_microcode(struct amdgpu_device *adev)
                if (adev->asic_type == CHIP_ARCTURUS) {
                        /* Acturus will leverage the same FW memory
                           for every SDMA instance */
-                       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 {
index ae6158456094a0dad08ed25fd5001240d0c2a0e0..cb5a6f1437f81d9367fadb62cebb1bd88589aaec 100644 (file)
@@ -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);