Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/radeon: Clean up errors in evergreen.c

Fix the following errors reported by checkpatch:

ERROR: that open brace { should be on the previous line
ERROR: spaces required around that '&=' (ctx:WxO)
ERROR: space required before that '~' (ctx:OxV)
ERROR: space prohibited before that close parenthesis ')'
ERROR: space required after that ',' (ctx:WxO)
ERROR: space required before that '&' (ctx:OxV)
ERROR: need consistent spacing around '*' (ctx:VxW)

Signed-off-by: GuoHua Chen <chenguohua_716@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

GuoHua Chen and committed by
Alex Deucher
c40bc917 c6ebd422

+8 -12
+8 -12
drivers/gpu/drm/radeon/evergreen.c
··· 2514 2514 WREG32(VM_CONTEXT1_CNTL, 0); 2515 2515 } 2516 2516 2517 - static const unsigned ni_dig_offsets[] = 2518 - { 2517 + static const unsigned ni_dig_offsets[] = { 2519 2518 NI_DIG0_REGISTER_OFFSET, 2520 2519 NI_DIG1_REGISTER_OFFSET, 2521 2520 NI_DIG2_REGISTER_OFFSET, ··· 2523 2524 NI_DIG5_REGISTER_OFFSET 2524 2525 }; 2525 2526 2526 - static const unsigned ni_tx_offsets[] = 2527 - { 2527 + static const unsigned ni_tx_offsets[] = { 2528 2528 NI_DCIO_UNIPHY0_UNIPHY_TX_CONTROL1, 2529 2529 NI_DCIO_UNIPHY1_UNIPHY_TX_CONTROL1, 2530 2530 NI_DCIO_UNIPHY2_UNIPHY_TX_CONTROL1, ··· 2532 2534 NI_DCIO_UNIPHY5_UNIPHY_TX_CONTROL1 2533 2535 }; 2534 2536 2535 - static const unsigned evergreen_dp_offsets[] = 2536 - { 2537 + static const unsigned evergreen_dp_offsets[] = { 2537 2538 EVERGREEN_DP0_REGISTER_OFFSET, 2538 2539 EVERGREEN_DP1_REGISTER_OFFSET, 2539 2540 EVERGREEN_DP2_REGISTER_OFFSET, ··· 2541 2544 EVERGREEN_DP5_REGISTER_OFFSET 2542 2545 }; 2543 2546 2544 - static const unsigned evergreen_disp_int_status[] = 2545 - { 2547 + static const unsigned evergreen_disp_int_status[] = { 2546 2548 DISP_INTERRUPT_STATUS, 2547 2549 DISP_INTERRUPT_STATUS_CONTINUE, 2548 2550 DISP_INTERRUPT_STATUS_CONTINUE2, ··· 2639 2643 return; 2640 2644 } 2641 2645 2642 - stream_ctrl &=~EVERGREEN_DP_VID_STREAM_CNTL_ENABLE; 2646 + stream_ctrl &= ~EVERGREEN_DP_VID_STREAM_CNTL_ENABLE; 2643 2647 WREG32(EVERGREEN_DP_VID_STREAM_CNTL + 2644 2648 evergreen_dp_offsets[dig_fe], stream_ctrl); 2645 2649 ··· 2651 2655 stream_ctrl = RREG32(EVERGREEN_DP_VID_STREAM_CNTL + 2652 2656 evergreen_dp_offsets[dig_fe]); 2653 2657 } 2654 - if (counter >= 32 ) 2658 + if (counter >= 32) 2655 2659 DRM_ERROR("counter exceeds %d\n", counter); 2656 2660 2657 2661 fifo_ctrl = RREG32(EVERGREEN_DP_STEER_FIFO + evergreen_dp_offsets[dig_fe]); ··· 2712 2716 /*for now we do it this manually*/ 2713 2717 /**/ 2714 2718 if (ASIC_IS_DCE5(rdev) && 2715 - evergreen_is_dp_sst_stream_enabled(rdev, i ,&dig_fe)) 2719 + evergreen_is_dp_sst_stream_enabled(rdev, i, &dig_fe)) 2716 2720 evergreen_blank_dp_output(rdev, dig_fe); 2717 2721 /*we could remove 6 lines below*/ 2718 2722 /* XXX this is a hack to avoid strange behavior with EFI on certain systems */ ··· 3593 3597 3594 3598 sq_lds_resource_mgmt = RREG32(SQ_LDS_RESOURCE_MGMT); 3595 3599 3596 - sq_gpr_resource_mgmt_1 = NUM_PS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2))* 12 / 32); 3600 + sq_gpr_resource_mgmt_1 = NUM_PS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 12 / 32); 3597 3601 sq_gpr_resource_mgmt_1 |= NUM_VS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 6 / 32); 3598 3602 sq_gpr_resource_mgmt_1 |= NUM_CLAUSE_TEMP_GPRS(4); 3599 3603 sq_gpr_resource_mgmt_2 = NUM_GS_GPRS((rdev->config.evergreen.max_gprs - (4 * 2)) * 4 / 32);