diff options
author | Julien BLACHE <jb@jblache.org> | 2006-11-15 00:00:17 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 17:23:38 -0500 |
commit | afd21ee5abd0fef567dbfa234099304886ff83ce (patch) | |
tree | e5a06d2e987fe9bd2f06988a46401fc344de2777 /drivers | |
parent | 54ecf1fba683f779a1b36abed9c843decafc7d5b (diff) |
USB: hid-core: canonical defines for Apple USB device IDs
Use canonical defines for the Apple USB device IDs.
Also add the Geyser IV devices missing in my previous patch.
Signed-off-by: Julien BLACHE <jb@jblache.org>
Acked-by: Dmitry Torokhov <dtor@insightbb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/input/hid-core.c | 37 |
1 files changed, 26 insertions, 11 deletions
diff --git a/drivers/usb/input/hid-core.c b/drivers/usb/input/hid-core.c index f7a67c4db515..a49644b7c58e 100644 --- a/drivers/usb/input/hid-core.c +++ b/drivers/usb/input/hid-core.c | |||
@@ -1640,6 +1640,19 @@ void hid_init_reports(struct hid_device *hid) | |||
1640 | 1640 | ||
1641 | #define USB_VENDOR_ID_APPLE 0x05ac | 1641 | #define USB_VENDOR_ID_APPLE 0x05ac |
1642 | #define USB_DEVICE_ID_APPLE_MIGHTYMOUSE 0x0304 | 1642 | #define USB_DEVICE_ID_APPLE_MIGHTYMOUSE 0x0304 |
1643 | #define USB_DEVICE_ID_APPLE_FOUNTAIN_ANSI 0x020e | ||
1644 | #define USB_DEVICE_ID_APPLE_FOUNTAIN_ISO 0x020f | ||
1645 | #define USB_DEVICE_ID_APPLE_GEYSER_ANSI 0x0214 | ||
1646 | #define USB_DEVICE_ID_APPLE_GEYSER_ISO 0x0215 | ||
1647 | #define USB_DEVICE_ID_APPLE_GEYSER_JIS 0x0216 | ||
1648 | #define USB_DEVICE_ID_APPLE_GEYSER3_ANSI 0x0217 | ||
1649 | #define USB_DEVICE_ID_APPLE_GEYSER3_ISO 0x0218 | ||
1650 | #define USB_DEVICE_ID_APPLE_GEYSER3_JIS 0x0219 | ||
1651 | #define USB_DEVICE_ID_APPLE_GEYSER4_ANSI 0x021a | ||
1652 | #define USB_DEVICE_ID_APPLE_GEYSER4_ISO 0x021b | ||
1653 | #define USB_DEVICE_ID_APPLE_GEYSER4_JIS 0x021c | ||
1654 | #define USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY 0x030a | ||
1655 | #define USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY 0x030b | ||
1643 | 1656 | ||
1644 | #define USB_VENDOR_ID_CHERRY 0x046a | 1657 | #define USB_VENDOR_ID_CHERRY 0x046a |
1645 | #define USB_DEVICE_ID_CHERRY_CYMOTION 0x0023 | 1658 | #define USB_DEVICE_ID_CHERRY_CYMOTION 0x0023 |
@@ -1807,17 +1820,19 @@ static const struct hid_blacklist { | |||
1807 | 1820 | ||
1808 | { USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION, HID_QUIRK_CYMOTION }, | 1821 | { USB_VENDOR_ID_CHERRY, USB_DEVICE_ID_CHERRY_CYMOTION, HID_QUIRK_CYMOTION }, |
1809 | 1822 | ||
1810 | { USB_VENDOR_ID_APPLE, 0x020E, HID_QUIRK_POWERBOOK_HAS_FN }, | 1823 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ANSI, HID_QUIRK_POWERBOOK_HAS_FN }, |
1811 | { USB_VENDOR_ID_APPLE, 0x020F, HID_QUIRK_POWERBOOK_HAS_FN }, | 1824 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_ISO, HID_QUIRK_POWERBOOK_HAS_FN }, |
1812 | { USB_VENDOR_ID_APPLE, 0x0214, HID_QUIRK_POWERBOOK_HAS_FN }, | 1825 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ANSI, HID_QUIRK_POWERBOOK_HAS_FN }, |
1813 | { USB_VENDOR_ID_APPLE, 0x0215, HID_QUIRK_POWERBOOK_HAS_FN | HID_QUIRK_POWERBOOK_ISO_KEYBOARD}, | 1826 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_ISO, HID_QUIRK_POWERBOOK_HAS_FN | HID_QUIRK_POWERBOOK_ISO_KEYBOARD}, |
1814 | { USB_VENDOR_ID_APPLE, 0x0216, HID_QUIRK_POWERBOOK_HAS_FN }, | 1827 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER_JIS, HID_QUIRK_POWERBOOK_HAS_FN }, |
1815 | { USB_VENDOR_ID_APPLE, 0x0217, HID_QUIRK_POWERBOOK_HAS_FN }, | 1828 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ANSI, HID_QUIRK_POWERBOOK_HAS_FN }, |
1816 | { USB_VENDOR_ID_APPLE, 0x0218, HID_QUIRK_POWERBOOK_HAS_FN | HID_QUIRK_POWERBOOK_ISO_KEYBOARD}, | 1829 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_ISO, HID_QUIRK_POWERBOOK_HAS_FN | HID_QUIRK_POWERBOOK_ISO_KEYBOARD}, |
1817 | { USB_VENDOR_ID_APPLE, 0x0219, HID_QUIRK_POWERBOOK_HAS_FN }, | 1830 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER3_JIS, HID_QUIRK_POWERBOOK_HAS_FN }, |
1818 | { USB_VENDOR_ID_APPLE, 0x021B, HID_QUIRK_POWERBOOK_HAS_FN }, | 1831 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ANSI, HID_QUIRK_POWERBOOK_HAS_FN }, |
1819 | { USB_VENDOR_ID_APPLE, 0x030A, HID_QUIRK_POWERBOOK_HAS_FN }, | 1832 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_ISO, HID_QUIRK_POWERBOOK_HAS_FN }, |
1820 | { USB_VENDOR_ID_APPLE, 0x030B, HID_QUIRK_POWERBOOK_HAS_FN }, | 1833 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER4_JIS, HID_QUIRK_POWERBOOK_HAS_FN }, |
1834 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_FOUNTAIN_TP_ONLY, HID_QUIRK_POWERBOOK_HAS_FN }, | ||
1835 | { USB_VENDOR_ID_APPLE, USB_DEVICE_ID_APPLE_GEYSER1_TP_ONLY, HID_QUIRK_POWERBOOK_HAS_FN }, | ||
1821 | 1836 | ||
1822 | { USB_VENDOR_ID_PANJIT, 0x0001, HID_QUIRK_IGNORE }, | 1837 | { USB_VENDOR_ID_PANJIT, 0x0001, HID_QUIRK_IGNORE }, |
1823 | { USB_VENDOR_ID_PANJIT, 0x0002, HID_QUIRK_IGNORE }, | 1838 | { USB_VENDOR_ID_PANJIT, 0x0002, HID_QUIRK_IGNORE }, |