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

drm/amdgpu: use string choice helpers

Use string choice helpers for better readability.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Closes: https://lore.kernel.org/r/202410161814.I6p2Nnux-lkp@intel.com/
Signed-off-by: R Sundar <prosunofficial@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

R Sundar and committed by
Alex Deucher
b95264cf 0174c079

+1 -1
+1 -1
drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.c
··· 200 200 dev_err_ratelimited(&i2c_adap->dev, 201 201 "maddr:0x%04X size:0x%02X:quirk max_%s_len must be > %d", 202 202 eeprom_addr, buf_size, 203 - read ? "read" : "write", EEPROM_OFFSET_SIZE); 203 + str_read_write(read), EEPROM_OFFSET_SIZE); 204 204 return -EINVAL; 205 205 } 206 206