HID: uclogic: Expose firmware name
authorJosé Expósito <jose.exposito89@gmail.com>
Fri, 22 Mar 2024 09:59:58 +0000 (10:59 +0100)
committerJiri Kosina <jkosina@suse.com>
Wed, 3 Apr 2024 11:51:06 +0000 (13:51 +0200)
commita721b1423b049323d0987700ff125b46208046f9
tree44ab05d7458739a7e980ba740a4109e52bae0175
parent3e78a6c0d3e02e4cf881dc84c5127e9990f939d6
HID: uclogic: Expose firmware name

Some vendors reuse the same product ID for different tablets, making it
difficult for userspace to figure out which table is connected.
While matching the device name has been used in the past by userspace to
workaround this limitation, some devices have shown that this is not
always a valid approach [1].

However, if userspace could access the firmware version name, it would
be possible to know which tablet is actually connected by matching it
against a list of known firmware names [2].

This patch exposes the firmware version name in the hid->uniq field.

Link: https://github.com/linuxwacom/libwacom/issues/609
Link: https://github.com/linuxwacom/libwacom/issues/610
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-uclogic-params.c