summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiu Song <liu.song13@zte.com.cn>2025-07-24 10:36:26 +0800
committerJiri Kosina <jkosina@suse.com>2025-08-12 14:50:36 +0200
commit1860b13beca829c056179c63530eebfec9a3efb4 (patch)
treebbb150edf44b42123ce32858126f62b4ba46a66a
parentb80a75cf6999fb79971b41eaec7af2bb4b514714 (diff)
HID: Intel-thc-hid: Intel-thc: Use str_true_false() helper
Remove hard-coded strings by using the str_true_false() helper function. Signed-off-by: Liu Song <liu.song13@zte.com.cn> Reviewed-by: Even Xu <even.xu@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
-rw-r--r--drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c b/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c
index 6f2263869b20..2b794bb481a0 100644
--- a/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c
+++ b/drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c
@@ -4,6 +4,7 @@
#include <linux/bitfield.h>
#include <linux/math.h>
#include <linux/regmap.h>
+#include <linux/string_choices.h>
#include "intel-thc-dev.h"
#include "intel-thc-hw.h"
@@ -664,7 +665,7 @@ int thc_interrupt_quiesce(const struct thc_device *dev, bool int_quiesce)
if (ret) {
dev_err_once(dev->dev,
"Timeout while waiting THC idle, target quiesce state = %s\n",
- int_quiesce ? "true" : "false");
+ str_true_false(int_quiesce));
return ret;
}