]> Git Repo - J-linux.git/commitdiff
drm/amdgpu: use string choice helpers
authorR Sundar <[email protected]>
Sun, 27 Oct 2024 14:05:37 +0000 (19:35 +0530)
committerAlex Deucher <[email protected]>
Mon, 4 Nov 2024 16:33:24 +0000 (11:33 -0500)
Use string choice helpers for better readability.

Reported-by: kernel test robot <[email protected]>
Reported-by: Julia Lawall <[email protected]>
Closes: https://lore.kernel.org/r/[email protected]/
Signed-off-by: R Sundar <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c

index 35fee3e8cde2b14905d6d971cf94323ea7d68c53..8cd69836dd9939e0891e5531268da4ec1ff73e30 100644 (file)
@@ -200,7 +200,7 @@ static int amdgpu_eeprom_xfer(struct i2c_adapter *i2c_adap, u32 eeprom_addr,
                dev_err_ratelimited(&i2c_adap->dev,
                                    "maddr:0x%04X size:0x%02X:quirk max_%s_len must be > %d",
                                    eeprom_addr, buf_size,
-                                   read ? "read" : "write", EEPROM_OFFSET_SIZE);
+                                   str_read_write(read), EEPROM_OFFSET_SIZE);
                return -EINVAL;
        }
 
This page took 0.050699 seconds and 4 git commands to generate.