Commit 1860b13b authored by Liu Song's avatar Liu Song Committed by Jiri Kosina
Browse files

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: default avatarLiu Song <liu.song13@zte.com.cn>
Reviewed-by: default avatarEven Xu <even.xu@intel.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
parent b80a75cf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
	}