[PATCH 2/2] drm/amdgpu: use str_enable_disable() in amdgpu_ualink_set_irq_state()
From: Aryan Sinha
Date: Wed Nov 04 2026 - 10:24:04 EST
Replace the open coded ternary with the helper from the string_choices.h.
Same output.
Signed-off-by: Aryan Sinha <sinha.aryan03@xxxxxxxxx>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
index f875209e5..a307d165a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
@@ -34,6 +34,7 @@
#include <linux/math.h>
#include <linux/sysfs.h>
#include <linux/string.h>
+#include <linux/string_choices.h>
static void deactivate_accelerator(struct amdgpu_device *adev);
static int amdgpu_ualink_remote_interrupt(struct amdgpu_device *adev,
@@ -6558,7 +6559,7 @@ static int amdgpu_ualink_set_irq_state(struct amdgpu_device *adev,
* interrupt driver.
*/
dev_dbg(adev->dev, "ualink interrupt %s\n",
- state == AMDGPU_IRQ_STATE_ENABLE ? "enable" : "disable");
+ str_enable_disable(state == AMDGPU_IRQ_STATE_ENABLE));
return 0;
}
--
2.46.0