HID: multitouch: set Stylus suffix for Stylus-application devices, too
[ Upstream commit bc8b796f618c3ccb0a2a8ed1e96c00a1a7849415 ] This re-adds the suffix to Win8 stylus-on-touchscreen devices, now that they aren't erroneously marked as MT Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2173746ed1
commit
41b9b39e1b
@ -1587,13 +1587,13 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
|
|||||||
/* we do not set suffix = "Touchscreen" */
|
/* we do not set suffix = "Touchscreen" */
|
||||||
hi->input->name = hdev->name;
|
hi->input->name = hdev->name;
|
||||||
break;
|
break;
|
||||||
case HID_DG_STYLUS:
|
|
||||||
/* force BTN_STYLUS to allow tablet matching in udev */
|
|
||||||
__set_bit(BTN_STYLUS, hi->input->keybit);
|
|
||||||
break;
|
|
||||||
case HID_VD_ASUS_CUSTOM_MEDIA_KEYS:
|
case HID_VD_ASUS_CUSTOM_MEDIA_KEYS:
|
||||||
suffix = "Custom Media Keys";
|
suffix = "Custom Media Keys";
|
||||||
break;
|
break;
|
||||||
|
case HID_DG_STYLUS:
|
||||||
|
/* force BTN_STYLUS to allow tablet matching in udev */
|
||||||
|
__set_bit(BTN_STYLUS, hi->input->keybit);
|
||||||
|
fallthrough;
|
||||||
case HID_DG_PEN:
|
case HID_DG_PEN:
|
||||||
suffix = "Stylus";
|
suffix = "Stylus";
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user