]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: improve code indentation and alignment
authorDeepak R Varma <mh12gx2825@gmail.com>
Mon, 2 Nov 2020 17:20:50 +0000 (22:50 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 2 Nov 2020 20:34:31 +0000 (15:34 -0500)
General code indentation and alignment changes such as replace spaces
by tabs or align function arguments as per the coding style
guidelines. The patch covers various .c files for this driver.
Issue reported by checkpatch script.

Signed-off-by: Deepak R Varma <mh12gx2825@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/atom.c
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/df_v1_7.c
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/jpeg_v2_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c
drivers/gpu/drm/amd/amdgpu/si.c
drivers/gpu/drm/amd/amdgpu/si_ih.c
drivers/gpu/drm/amd/amdgpu/soc15.c

index 4cfc786699c7fcaac2b903c463ea85bbd9379812..696e97ab77eb3db42292ed5b87e188da36df466e 100644 (file)
@@ -71,8 +71,8 @@ static int amdgpu_atom_execute_table_locked(struct atom_context *ctx, int index,
 int amdgpu_atom_execute_table(struct atom_context *ctx, int index, uint32_t * params);
 
 static uint32_t atom_arg_mask[8] =
-    { 0xFFFFFFFF, 0xFFFF, 0xFFFF00, 0xFFFF0000, 0xFF, 0xFF00, 0xFF0000,
-0xFF000000 };
+       { 0xFFFFFFFF, 0xFFFF, 0xFFFF00, 0xFFFF0000, 0xFF, 0xFF00, 0xFF0000,
+         0xFF000000 };
 static int atom_arg_shift[8] = { 0, 0, 8, 16, 0, 8, 16, 24 };
 
 static int atom_dst_to_src[8][4] = {
index a3c3fe96515f2133cbe79382f822951deaea9fc9..1a6494ea50912ac952d8b811f70ef9ddc8783379 100644 (file)
@@ -195,7 +195,7 @@ static void cik_sdma_ring_set_wptr(struct amdgpu_ring *ring)
        struct amdgpu_device *adev = ring->adev;
 
        WREG32(mmSDMA0_GFX_RB_WPTR + sdma_offsets[ring->me],
-                       (lower_32_bits(ring->wptr) << 2) & 0x3fffc);
+              (lower_32_bits(ring->wptr) << 2) & 0x3fffc);
 }
 
 static void cik_sdma_ring_insert_nop(struct amdgpu_ring *ring, uint32_t count)
index d6aca1c080687e6fbad20828024cb78e2fd6705e..2d01ac0d4c11b47ffb2bd7e3cd2632b2559652d0 100644 (file)
@@ -41,7 +41,7 @@ static void df_v1_7_sw_fini(struct amdgpu_device *adev)
 }
 
 static void df_v1_7_enable_broadcast_mode(struct amdgpu_device *adev,
-                                          bool enable)
+                                         bool enable)
 {
        u32 tmp;
 
index ef385a529013510370912404e4439da085fe2c7c..d9399324be474ba526ccb1585b94b2959282df97 100644 (file)
@@ -147,7 +147,7 @@ static const struct amdgpu_irq_src_funcs gmc_v10_0_ecc_funcs = {
        .process = amdgpu_umc_process_ecc_irq,
 };
 
- static void gmc_v10_0_set_irq_funcs(struct amdgpu_device *adev)
+static void gmc_v10_0_set_irq_funcs(struct amdgpu_device *adev)
 {
        adev->gmc.vm_fault.num_types = 1;
        adev->gmc.vm_fault.funcs = &gmc_v10_0_irq_funcs;
index 94caf5204c8bd409ae66d09a63b8edf6eeb9a42b..7b1a18cbafc4d1f2d9a7aa3ce41cbc4b993caf90 100644 (file)
 #include "vcn/vcn_2_0_0_sh_mask.h"
 #include "ivsrcid/vcn/irqsrcs_vcn_2_0.h"
 
-#define mmUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET                        0x1bfff
+#define mmUVD_JRBC_EXTERNAL_REG_INTERNAL_OFFSET                                0x1bfff
 #define mmUVD_JPEG_GPCOM_CMD_INTERNAL_OFFSET                           0x4029
 #define mmUVD_JPEG_GPCOM_DATA0_INTERNAL_OFFSET                         0x402a
 #define mmUVD_JPEG_GPCOM_DATA1_INTERNAL_OFFSET                         0x402b
 #define mmUVD_LMI_JRBC_RB_MEM_WR_64BIT_BAR_LOW_INTERNAL_OFFSET         0x40ea
-#define mmUVD_LMI_JRBC_RB_MEM_WR_64BIT_BAR_HIGH_INTERNAL_OFFSET        0x40eb
+#define mmUVD_LMI_JRBC_RB_MEM_WR_64BIT_BAR_HIGH_INTERNAL_OFFSET                0x40eb
 #define mmUVD_LMI_JRBC_IB_VMID_INTERNAL_OFFSET                         0x40cf
 #define mmUVD_LMI_JPEG_VMID_INTERNAL_OFFSET                            0x40d1
-#define mmUVD_LMI_JRBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET                0x40e8
+#define mmUVD_LMI_JRBC_IB_64BIT_BAR_LOW_INTERNAL_OFFSET                        0x40e8
 #define mmUVD_LMI_JRBC_IB_64BIT_BAR_HIGH_INTERNAL_OFFSET               0x40e9
 #define mmUVD_JRBC_IB_SIZE_INTERNAL_OFFSET                             0x4082
 #define mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_LOW_INTERNAL_OFFSET         0x40ec
-#define mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_HIGH_INTERNAL_OFFSET        0x40ed
+#define mmUVD_LMI_JRBC_RB_MEM_RD_64BIT_BAR_HIGH_INTERNAL_OFFSET                0x40ed
 #define mmUVD_JRBC_RB_COND_RD_TIMER_INTERNAL_OFFSET                    0x4085
 #define mmUVD_JRBC_RB_REF_DATA_INTERNAL_OFFSET                         0x4084
 #define mmUVD_JRBC_STATUS_INTERNAL_OFFSET                              0x4089
index f84701c562bf212230dbddccc971038ce160f54b..0309d84c887d06d6167c9f80b8350c5a728e4485 100644 (file)
@@ -409,7 +409,7 @@ static void mmhub_v1_0_set_fault_enable_default(struct amdgpu_device *adev, bool
                                CRASH_ON_NO_RETRY_FAULT, 1);
                tmp = REG_SET_FIELD(tmp, VM_L2_PROTECTION_FAULT_CNTL,
                                CRASH_ON_RETRY_FAULT, 1);
-    }
+       }
 
        WREG32_SOC15(MMHUB, 0, mmVM_L2_PROTECTION_FAULT_CNTL, tmp);
 }
@@ -712,7 +712,7 @@ static int mmhub_v1_0_get_ras_error_count(struct amdgpu_device *adev,
        uint32_t sec_cnt, ded_cnt;
 
        for (i = 0; i < ARRAY_SIZE(mmhub_v1_0_ras_fields); i++) {
-               if(mmhub_v1_0_ras_fields[i].reg_offset != reg->reg_offset)
+               if (mmhub_v1_0_ras_fields[i].reg_offset != reg->reg_offset)
                        continue;
 
                sec_cnt = (value &
index e5e336fd9e94176ffbb7db39fd3223627039b548..3cf0589bfea5e4ecf5bbf44b2701d0773a908ceb 100644 (file)
@@ -1350,7 +1350,7 @@ static void si_vga_set_state(struct amdgpu_device *adev, bool state)
 
 static u32 si_get_xclk(struct amdgpu_device *adev)
 {
-        u32 reference_clock = adev->clock.spll.reference_freq;
+       u32 reference_clock = adev->clock.spll.reference_freq;
        u32 tmp;
 
        tmp = RREG32(CG_CLKPIN_CNTL_2);
index 621727d7fd18461937de9382734db76f922dbbdb..51880f6ef63428fdcbb23ad14ca0727973354c5e 100644 (file)
@@ -43,7 +43,7 @@ static void si_ih_enable_interrupts(struct amdgpu_device *adev)
        WREG32(IH_RB_CNTL, ih_rb_cntl);
        adev->irq.ih.enabled = true;
 }
-  
+
 static void si_ih_disable_interrupts(struct amdgpu_device *adev)
 {
        u32 ih_rb_cntl = RREG32(IH_RB_CNTL);
index fc5b11752931aea72aa7c4d54b2952b48481585d..5b79ce9e06994043586abb8bbcd3d47ad1d5db4b 100644 (file)
@@ -829,7 +829,7 @@ int soc15_set_ip_blocks(struct amdgpu_device *adev)
                        amdgpu_device_ip_block_add(adev, &dce_virtual_ip_block);
 #if defined(CONFIG_DRM_AMD_DC)
                 else if (amdgpu_device_has_dc_support(adev))
-                        amdgpu_device_ip_block_add(adev, &dm_ip_block);
+                       amdgpu_device_ip_block_add(adev, &dm_ip_block);
 #endif
                amdgpu_device_ip_block_add(adev, &vcn_v2_0_ip_block);
                amdgpu_device_ip_block_add(adev, &jpeg_v2_0_ip_block);