Skip to content

Commit 7163dad

Browse files
Ran Sunalexdeucher
authored andcommitted
drm/amdgpu/atomfirmware: Clean up errors in amdgpu_atomfirmware.c
Fix the following errors reported by checkpatch: ERROR: spaces required around that '>=' (ctx:WxV) ERROR: spaces required around that '!=' (ctx:WxV) ERROR: code indent should use tabs where possible Signed-off-by: Ran Sun <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent f291f9b commit 7163dad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ uint32_t amdgpu_atomfirmware_query_firmware_capability(struct amdgpu_device *ade
5858
if (amdgpu_atom_parse_data_header(adev->mode_info.atom_context,
5959
index, &size, &frev, &crev, &data_offset)) {
6060
/* support firmware_info 3.1 + */
61-
if ((frev == 3 && crev >=1) || (frev > 3)) {
61+
if ((frev == 3 && crev >= 1) || (frev > 3)) {
6262
firmware_info = (union firmware_info *)
6363
(mode_info->atom_context->bios + data_offset);
6464
fw_cap = le32_to_cpu(firmware_info->v31.firmware_capability);
@@ -597,7 +597,7 @@ bool amdgpu_atomfirmware_ras_rom_addr(struct amdgpu_device *adev,
597597
index, &size, &frev, &crev,
598598
&data_offset)) {
599599
/* support firmware_info 3.4 + */
600-
if ((frev == 3 && crev >=4) || (frev > 3)) {
600+
if ((frev == 3 && crev >= 4) || (frev > 3)) {
601601
firmware_info = (union firmware_info *)
602602
(mode_info->atom_context->bios + data_offset);
603603
/* The ras_rom_i2c_slave_addr should ideally
@@ -850,7 +850,7 @@ int amdgpu_atomfirmware_get_fw_reserved_fb_size(struct amdgpu_device *adev)
850850

851851
firmware_info = (union firmware_info *)(ctx->bios + data_offset);
852852

853-
if (frev !=3)
853+
if (frev != 3)
854854
return -EINVAL;
855855

856856
switch (crev) {
@@ -909,7 +909,7 @@ int amdgpu_atomfirmware_asic_init(struct amdgpu_device *adev, bool fb_reset)
909909
}
910910

911911
index = get_index_into_master_table(atom_master_list_of_command_functions_v2_1,
912-
asic_init);
912+
asic_init);
913913
if (amdgpu_atom_parse_cmd_header(mode_info->atom_context, index, &frev, &crev)) {
914914
if (frev == 2 && crev >= 1) {
915915
memset(&asic_init_ps_v2_1, 0, sizeof(asic_init_ps_v2_1));

0 commit comments

Comments
 (0)