Commit ab5fe339 authored by Maximilian Luz's avatar Maximilian Luz Committed by Hans de Goede
Browse files

HID: surface-hid: Allow driver matching for target ID 1 devices



Until now we have only ever seen HID devices with target ID 2. The new
Surface Laptop Studio however uses HID devices with target ID 1. Allow
matching this driver to those as well.

Cc: stable@vger.kernel.org # 5.14+
Signed-off-by: default avatarMaximilian Luz <luzmaximilian@gmail.com>
Acked-by: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20211021130904.862610-4-luzmaximilian@gmail.com


Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent dc0fd0ac
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -230,7 +230,7 @@ static void surface_hid_remove(struct ssam_device *sdev)
}
}


static const struct ssam_device_id surface_hid_match[] = {
static const struct ssam_device_id surface_hid_match[] = {
	{ SSAM_SDEV(HID, 0x02, SSAM_ANY_IID, 0x00) },
	{ SSAM_SDEV(HID, SSAM_ANY_TID, SSAM_ANY_IID, 0x00) },
	{ },
	{ },
};
};
MODULE_DEVICE_TABLE(ssam, surface_hid_match);
MODULE_DEVICE_TABLE(ssam, surface_hid_match);