[PATCH] USB: cypress_m8: add support for the DeLorme Earthmate lt-20

This patch adds support for the DeLorme Earthmate lt-20 to the
cypress_m8 driver. The device was tested and found to be compatible
with the cypress_m8 driver. This is a resend with the complete patch
which properly compiles.

Adds support for the DeLorme Earthmate lt-20 to the cypress_m8 driver.

Signed-off-by: Lonnie Mendez <lmendez19@austin.rr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Lonnie Mendez and committed by
Greg KH
25b6f08e 4756ae5b

+3
+2
drivers/usb/serial/cypress_m8.c
··· 89 90 static struct usb_device_id id_table_earthmate [] = { 91 { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, 92 { } /* Terminating entry */ 93 }; 94 ··· 100 101 static struct usb_device_id id_table_combined [] = { 102 { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, 103 { USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) }, 104 { } /* Terminating entry */ 105 };
··· 89 90 static struct usb_device_id id_table_earthmate [] = { 91 { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, 92 + { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) }, 93 { } /* Terminating entry */ 94 }; 95 ··· 99 100 static struct usb_device_id id_table_combined [] = { 101 { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) }, 102 + { USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) }, 103 { USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) }, 104 { } /* Terminating entry */ 105 };
+1
drivers/usb/serial/cypress_m8.h
··· 13 /* DeLorme Earthmate USB - a GPS device */ 14 #define VENDOR_ID_DELORME 0x1163 15 #define PRODUCT_ID_EARTHMATEUSB 0x0100 16 17 /* Cypress HID->COM RS232 Adapter */ 18 #define VENDOR_ID_CYPRESS 0x04b4
··· 13 /* DeLorme Earthmate USB - a GPS device */ 14 #define VENDOR_ID_DELORME 0x1163 15 #define PRODUCT_ID_EARTHMATEUSB 0x0100 16 + #define PRODUCT_ID_EARTHMATEUSB_LT20 0x0200 17 18 /* Cypress HID->COM RS232 Adapter */ 19 #define VENDOR_ID_CYPRESS 0x04b4