hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/usb/serial/garmin_gps.c
....@@ -104,7 +104,7 @@
104104 int seq;
105105 /* the real size of the data array, always > 0 */
106106 int size;
107
- __u8 data[1];
107
+ __u8 data[];
108108 };
109109
110110 /* structure used to keep the current state of the driver */
....@@ -179,19 +179,22 @@
179179 = { 0, 0, 0, 0, 6, 0, 0, 0, 4, 0, 0, 0 };
180180 static unsigned char const GARMIN_BULK_IN_AVAIL_REPLY[]
181181 = { 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 };
182
+static unsigned char const GARMIN_STOP_TRANSFER_REQ[]
183
+ = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 0, 0 };
184
+static unsigned char const GARMIN_STOP_TRANSFER_REQ_V2[]
185
+ = { 20, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 0, 0 };
186
+
187
+/* packets currently unused, left as documentation */
188
+#if 0
182189 static unsigned char const GARMIN_APP_LAYER_REPLY[]
183190 = { 0x14, 0, 0, 0 };
184191 static unsigned char const GARMIN_START_PVT_REQ[]
185192 = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 49, 0 };
186193 static unsigned char const GARMIN_STOP_PVT_REQ[]
187194 = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 50, 0 };
188
-static unsigned char const GARMIN_STOP_TRANSFER_REQ[]
189
- = { 20, 0, 0, 0, 10, 0, 0, 0, 2, 0, 0, 0, 0, 0 };
190
-static unsigned char const GARMIN_STOP_TRANSFER_REQ_V2[]
191
- = { 20, 0, 0, 0, 10, 0, 0, 0, 1, 0, 0, 0, 0 };
192195 static unsigned char const PRIVATE_REQ[]
193196 = { 0x4B, 0x6E, 0x10, 0x01, 0xFF, 0, 0, 0, 0xFF, 0, 0, 0 };
194
-
197
+#endif
195198
196199
197200 static const struct usb_device_id id_table[] = {