summaryrefslogtreecommitdiff
path: root/drivers/hid/hid-uclogic-params.h
diff options
context:
space:
mode:
authorNikolai Kondrashov <spbnick@gmail.com>2022-02-19 13:01:49 +0300
committerJiri Kosina <jkosina@suse.cz>2022-03-01 17:28:13 +0300
commit606dadc1878f2fdeaa6e435c9c83f58a01387a7d (patch)
tree399290b792ae52b76bbb1369654f4a81944e7d69 /drivers/hid/hid-uclogic-params.h
parent044fa8162dc10686fcffa5501d4ca3947df047ca (diff)
downloadlinux-606dadc1878f2fdeaa6e435c9c83f58a01387a7d.tar.xz
HID: uclogic: Remove pen usage masking
Remove support for pen usage masking from hid-uclogic. Disable whole interfaces instead. Most of those interfaces are useless, and if there is one which has an unused pen usage, but also has useful reports, its report descriptor should be rewritten instead. This simplifies the code and the data structures. Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com> Signed-off-by: José Expósito <jose.exposito89@gmail.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-uclogic-params.h')
-rw-r--r--drivers/hid/hid-uclogic-params.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/hid/hid-uclogic-params.h b/drivers/hid/hid-uclogic-params.h
index e8381bb77bd0..48b974943bb9 100644
--- a/drivers/hid/hid-uclogic-params.h
+++ b/drivers/hid/hid-uclogic-params.h
@@ -139,13 +139,8 @@ struct uclogic_params {
*/
unsigned int desc_size;
/*
- * True, if pen usage in report descriptor is invalid, when present.
- * Only valid, if "invalid" is false.
- */
- bool pen_unused;
- /*
* Pen parameters and optional report descriptor part.
- * Only valid if "pen_unused" is valid and false.
+ * Only valid, if "invalid" is false.
*/
struct uclogic_params_pen pen;
/*
@@ -171,7 +166,6 @@ extern int uclogic_params_init(struct uclogic_params *params,
".invalid = %s\n" \
".desc_ptr = %p\n" \
".desc_size = %u\n" \
- ".pen_unused = %s\n" \
".pen.desc_ptr = %p\n" \
".pen.desc_size = %u\n" \
".pen.id = %u\n" \
@@ -190,7 +184,6 @@ extern int uclogic_params_init(struct uclogic_params *params,
((_params)->invalid ? "true" : "false"), \
(_params)->desc_ptr, \
(_params)->desc_size, \
- ((_params)->pen_unused ? "true" : "false"), \
(_params)->pen.desc_ptr, \
(_params)->pen.desc_size, \
(_params)->pen.id, \