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

drm/amdgpu: rename amdgpu_need_post

add device to the name for consistency.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

+6 -6
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu.h
··· 1893 1893 int amdgpu_gpu_recover(struct amdgpu_device *adev, struct amdgpu_job* job, bool force); 1894 1894 bool amdgpu_need_backup(struct amdgpu_device *adev); 1895 1895 void amdgpu_device_pci_config_reset(struct amdgpu_device *adev); 1896 - bool amdgpu_need_post(struct amdgpu_device *adev); 1896 + bool amdgpu_device_need_post(struct amdgpu_device *adev); 1897 1897 void amdgpu_update_display_priority(struct amdgpu_device *adev); 1898 1898 1899 1899 void amdgpu_cs_report_moved_bytes(struct amdgpu_device *adev, u64 num_bytes,
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
··· 93 93 resource_size_t size = 256 * 1024; /* ??? */ 94 94 95 95 if (!(adev->flags & AMD_IS_APU)) 96 - if (amdgpu_need_post(adev)) 96 + if (amdgpu_device_need_post(adev)) 97 97 return false; 98 98 99 99 adev->bios = NULL;
+4 -4
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
··· 671 671 * GPU helpers function. 672 672 */ 673 673 /** 674 - * amdgpu_need_post - check if the hw need post or not 674 + * amdgpu_device_need_post - check if the hw need post or not 675 675 * 676 676 * @adev: amdgpu_device pointer 677 677 * ··· 679 679 * or post is needed if hw reset is performed. 680 680 * Returns true if need or false if not. 681 681 */ 682 - bool amdgpu_need_post(struct amdgpu_device *adev) 682 + bool amdgpu_device_need_post(struct amdgpu_device *adev) 683 683 { 684 684 uint32_t reg; 685 685 ··· 1946 1946 amdgpu_device_detect_sriov_bios(adev); 1947 1947 1948 1948 /* Post card if necessary */ 1949 - if (amdgpu_need_post(adev)) { 1949 + if (amdgpu_device_need_post(adev)) { 1950 1950 if (!adev->bios) { 1951 1951 dev_err(adev->dev, "no vBIOS found\n"); 1952 1952 r = -EINVAL; ··· 2275 2275 } 2276 2276 2277 2277 /* post card */ 2278 - if (amdgpu_need_post(adev)) { 2278 + if (amdgpu_device_need_post(adev)) { 2279 2279 r = amdgpu_atom_asic_init(adev->mode_info.atom_context); 2280 2280 if (r) 2281 2281 DRM_ERROR("amdgpu asic init failed\n");