diff options
| author | R Sundar <[email protected]> | 2024-10-27 14:05:37 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-11-04 16:33:24 +0000 |
| commit | b95264cf75bd8840b10733c50678d154c02b5431 (patch) | |
| tree | 26fb883cc8784aefa7feb7f6ae927defcd16968e /drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c | |
| parent | drm/amdgpu: fix comment about amdgpu.abmlevel defaults (diff) | |
| download | kernel-b95264cf75bd8840b10733c50678d154c02b5431.tar.gz kernel-b95264cf75bd8840b10733c50678d154c02b5431.zip | |
drm/amdgpu: use string choice helpers
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]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c index 35fee3e8cde2..8cd69836dd99 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c @@ -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; } |
