]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
HID: Intel-thc-hid: Intel-thc: Use str_true_false() helper
authorLiu Song <liu.song13@zte.com.cn>
Thu, 24 Jul 2025 02:36:26 +0000 (10:36 +0800)
committerJiri Kosina <jkosina@suse.com>
Tue, 12 Aug 2025 12:50:36 +0000 (14:50 +0200)
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>
drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c

index 6f2263869b209afae8c6336fa54c716939366cdf..2b794bb481a04a168f513e57f990ba3802cbaf2b 100644 (file)
@@ -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;
        }