Skip to content

Commit 1860b13

Browse files
Liu SongJiri Kosina
authored andcommitted
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>
1 parent b80a75c commit 1860b13

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/hid/intel-thc-hid/intel-thc/intel-thc-dev.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <linux/bitfield.h>
55
#include <linux/math.h>
66
#include <linux/regmap.h>
7+
#include <linux/string_choices.h>
78

89
#include "intel-thc-dev.h"
910
#include "intel-thc-hw.h"
@@ -664,7 +665,7 @@ int thc_interrupt_quiesce(const struct thc_device *dev, bool int_quiesce)
664665
if (ret) {
665666
dev_err_once(dev->dev,
666667
"Timeout while waiting THC idle, target quiesce state = %s\n",
667-
int_quiesce ? "true" : "false");
668+
str_true_false(int_quiesce));
668669
return ret;
669670
}
670671

0 commit comments

Comments
 (0)