diff options
| author | Julien BLACHE <jb@jblache.org> | 2006-11-17 01:06:25 -0500 |
|---|---|---|
| committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-11-17 01:06:25 -0500 |
| commit | e5d9832c207f952e15ccddda5f2d52c94036acd7 (patch) | |
| tree | a3e48cf8ebc6c3d6ca785e0247eafbce45dc5f56 /drivers/usb/input | |
| parent | 009ad0e7b43d6cabd74e47db6180f14315b71417 (diff) | |
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: Julien BLACHE <jb@jblache.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input')
| -rw-r--r-- | drivers/usb/input/appletouch.c | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/drivers/usb/input/appletouch.c b/drivers/usb/input/appletouch.c index 69c445620f15..c77291d3d063 100644 --- a/drivers/usb/input/appletouch.c +++ b/drivers/usb/input/appletouch.c | |||
| @@ -38,14 +38,21 @@ | |||
| 38 | #define APPLE_VENDOR_ID 0x05AC | 38 | #define APPLE_VENDOR_ID 0x05AC |
| 39 | 39 | ||
| 40 | /* These names come from Info.plist in AppleUSBTrackpad.kext */ | 40 | /* These names come from Info.plist in AppleUSBTrackpad.kext */ |
| 41 | #define GEYSER_ANSI_PRODUCT_ID 0x0214 | 41 | #define FOUNTAIN_ANSI_PRODUCT_ID 0x020E |
| 42 | #define GEYSER_ISO_PRODUCT_ID 0x0215 | 42 | #define FOUNTAIN_ISO_PRODUCT_ID 0x020F |
| 43 | #define GEYSER_JIS_PRODUCT_ID 0x0216 | 43 | |
| 44 | #define FOUNTAIN_TP_ONLY_PRODUCT_ID 0x030A | ||
| 45 | |||
| 46 | #define GEYSER1_TP_ONLY_PRODUCT_ID 0x030B | ||
| 47 | |||
| 48 | #define GEYSER_ANSI_PRODUCT_ID 0x0214 | ||
| 49 | #define GEYSER_ISO_PRODUCT_ID 0x0215 | ||
| 50 | #define GEYSER_JIS_PRODUCT_ID 0x0216 | ||
| 44 | 51 | ||
| 45 | /* MacBook devices */ | 52 | /* MacBook devices */ |
| 46 | #define GEYSER3_ANSI_PRODUCT_ID 0x0217 | 53 | #define GEYSER3_ANSI_PRODUCT_ID 0x0217 |
| 47 | #define GEYSER3_ISO_PRODUCT_ID 0x0218 | 54 | #define GEYSER3_ISO_PRODUCT_ID 0x0218 |
| 48 | #define GEYSER3_JIS_PRODUCT_ID 0x0219 | 55 | #define GEYSER3_JIS_PRODUCT_ID 0x0219 |
| 49 | 56 | ||
| 50 | /* | 57 | /* |
| 51 | * Geyser IV: same as Geyser III according to Info.plist in AppleUSBTrackpad.kext | 58 | * Geyser IV: same as Geyser III according to Info.plist in AppleUSBTrackpad.kext |
| @@ -66,10 +73,10 @@ | |||
| 66 | 73 | ||
| 67 | /* table of devices that work with this driver */ | 74 | /* table of devices that work with this driver */ |
| 68 | static struct usb_device_id atp_table [] = { | 75 | static struct usb_device_id atp_table [] = { |
| 69 | { ATP_DEVICE(0x020E) }, | 76 | { ATP_DEVICE(FOUNTAIN_ANSI_PRODUCT_ID) }, |
| 70 | { ATP_DEVICE(0x020F) }, | 77 | { ATP_DEVICE(FOUNTAIN_ISO_PRODUCT_ID) }, |
| 71 | { ATP_DEVICE(0x030A) }, | 78 | { ATP_DEVICE(FOUNTAIN_TP_ONLY_PRODUCT_ID) }, |
| 72 | { ATP_DEVICE(0x030B) }, | 79 | { ATP_DEVICE(GEYSER1_TP_ONLY_PRODUCT_ID) }, |
| 73 | 80 | ||
| 74 | /* PowerBooks Oct 2005 */ | 81 | /* PowerBooks Oct 2005 */ |
| 75 | { ATP_DEVICE(GEYSER_ANSI_PRODUCT_ID) }, | 82 | { ATP_DEVICE(GEYSER_ANSI_PRODUCT_ID) }, |
