Skip to content

Commit 41a9d4f

Browse files
author
Benjamin Tissoires
committed
Merge branch 'for-6.18/uclogic' into for-linus
- make use of str_true_or_false() (Liu Song)
2 parents 8e32aa6 + b31e3bd commit 41a9d4f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

drivers/hid/hid-uclogic-params.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/ctype.h>
2121
#include <linux/string.h>
2222
#include <linux/unaligned.h>
23+
#include <linux/string_choices.h>
2324

2425
/**
2526
* uclogic_params_pen_inrange_to_str() - Convert a pen in-range reporting type
@@ -59,7 +60,7 @@ static void uclogic_params_pen_hid_dbg(const struct hid_device *hdev,
5960
size_t i;
6061

6162
hid_dbg(hdev, "\t.usage_invalid = %s\n",
62-
(pen->usage_invalid ? "true" : "false"));
63+
str_true_false(pen->usage_invalid));
6364
hid_dbg(hdev, "\t.desc_ptr = %p\n", pen->desc_ptr);
6465
hid_dbg(hdev, "\t.desc_size = %u\n", pen->desc_size);
6566
hid_dbg(hdev, "\t.id = %u\n", pen->id);
@@ -74,9 +75,9 @@ static void uclogic_params_pen_hid_dbg(const struct hid_device *hdev,
7475
hid_dbg(hdev, "\t.inrange = %s\n",
7576
uclogic_params_pen_inrange_to_str(pen->inrange));
7677
hid_dbg(hdev, "\t.fragmented_hires = %s\n",
77-
(pen->fragmented_hires ? "true" : "false"));
78+
str_true_false(pen->fragmented_hires));
7879
hid_dbg(hdev, "\t.tilt_y_flipped = %s\n",
79-
(pen->tilt_y_flipped ? "true" : "false"));
80+
str_true_false(pen->tilt_y_flipped));
8081
}
8182

8283
/**
@@ -119,8 +120,7 @@ void uclogic_params_hid_dbg(const struct hid_device *hdev,
119120
{
120121
size_t i;
121122

122-
hid_dbg(hdev, ".invalid = %s\n",
123-
params->invalid ? "true" : "false");
123+
hid_dbg(hdev, ".invalid = %s\n", str_true_false(params->invalid));
124124
hid_dbg(hdev, ".desc_ptr = %p\n", params->desc_ptr);
125125
hid_dbg(hdev, ".desc_size = %u\n", params->desc_size);
126126
hid_dbg(hdev, ".pen = {\n");

0 commit comments

Comments
 (0)