Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5d9832c authored by Julien BLACHE's avatar Julien BLACHE Committed by Dmitry Torokhov
Browse files

Input: appletouch - use canonical names in USB IDs



Small readability improvement for appletouch: use canonical names
instead of raw USB IDs for some of the devices.

Signed-off-by: default avatarJulien BLACHE <jb@jblache.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 009ad0e7
Loading
Loading
Loading
Loading
+17 −10
Original line number Original line Diff line number Diff line
@@ -38,6 +38,13 @@
#define APPLE_VENDOR_ID		0x05AC
#define APPLE_VENDOR_ID		0x05AC


/* These names come from Info.plist in AppleUSBTrackpad.kext */
/* These names come from Info.plist in AppleUSBTrackpad.kext */
#define FOUNTAIN_ANSI_PRODUCT_ID	0x020E
#define FOUNTAIN_ISO_PRODUCT_ID		0x020F

#define FOUNTAIN_TP_ONLY_PRODUCT_ID	0x030A

#define GEYSER1_TP_ONLY_PRODUCT_ID	0x030B

#define GEYSER_ANSI_PRODUCT_ID		0x0214
#define GEYSER_ANSI_PRODUCT_ID		0x0214
#define GEYSER_ISO_PRODUCT_ID		0x0215
#define GEYSER_ISO_PRODUCT_ID		0x0215
#define GEYSER_JIS_PRODUCT_ID		0x0216
#define GEYSER_JIS_PRODUCT_ID		0x0216
@@ -66,10 +73,10 @@


/* table of devices that work with this driver */
/* table of devices that work with this driver */
static struct usb_device_id atp_table [] = {
static struct usb_device_id atp_table [] = {
	{ ATP_DEVICE(0x020E) },
	{ ATP_DEVICE(FOUNTAIN_ANSI_PRODUCT_ID) },
	{ ATP_DEVICE(0x020F) },
	{ ATP_DEVICE(FOUNTAIN_ISO_PRODUCT_ID) },
	{ ATP_DEVICE(0x030A) },
	{ ATP_DEVICE(FOUNTAIN_TP_ONLY_PRODUCT_ID) },
	{ ATP_DEVICE(0x030B) },
	{ ATP_DEVICE(GEYSER1_TP_ONLY_PRODUCT_ID) },


	/* PowerBooks Oct 2005 */
	/* PowerBooks Oct 2005 */
	{ ATP_DEVICE(GEYSER_ANSI_PRODUCT_ID) },
	{ ATP_DEVICE(GEYSER_ANSI_PRODUCT_ID) },