Skip to content

Commit 3ca06e9

Browse files
committed
Merge tag 'usb-serial-6.11-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-linus
Johan writes: USB-serial updates for 6.11-rc1 Here are the USB-serial updates for 6.11-rc1, including: - add missing module descriptions - add flexible array annotation in garmin_gps Included are also various clean ups. All have been in linux-next with no reported issues. * tag 'usb-serial-6.11-rc1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial: USB: serial: garmin_gps: use struct_size() to allocate pkt USB: serial: garmin_gps: annotate struct garmin_packet with __counted_by USB: serial: add missing MODULE_DESCRIPTION() macros USB: serial: spcp8x5: remove unused struct 'spcp8x5_usb_ctrl_arg'
2 parents 8400291 + df8c0b8 commit 3ca06e9

File tree

9 files changed

+9
-13
lines changed

9 files changed

+9
-13
lines changed

drivers/usb/serial/ch341.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,4 +863,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
863863

864864
module_usb_serial_driver(serial_drivers, id_table);
865865

866+
MODULE_DESCRIPTION("Winchiphead CH341 USB Serial driver");
866867
MODULE_LICENSE("GPL v2");

drivers/usb/serial/garmin_gps.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ struct garmin_packet {
104104
int seq;
105105
/* the real size of the data array, always > 0 */
106106
int size;
107-
__u8 data[];
107+
__u8 data[] __counted_by(size);
108108
};
109109

110110
/* structure used to keep the current state of the driver */
@@ -267,8 +267,7 @@ static int pkt_add(struct garmin_data *garmin_data_p,
267267

268268
/* process only packets containing data ... */
269269
if (data_length) {
270-
pkt = kmalloc(sizeof(struct garmin_packet)+data_length,
271-
GFP_ATOMIC);
270+
pkt = kmalloc(struct_size(pkt, data, data_length), GFP_ATOMIC);
272271
if (!pkt)
273272
return 0;
274273

drivers/usb/serial/mxuport.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,4 +1315,5 @@ module_usb_serial_driver(serial_drivers, mxuport_idtable);
13151315

13161316
MODULE_AUTHOR("Andrew Lunn <[email protected]>");
13171317
MODULE_AUTHOR("<[email protected]>");
1318+
MODULE_DESCRIPTION("Moxa UPORT USB Serial driver");
13181319
MODULE_LICENSE("GPL");

drivers/usb/serial/navman.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
112112

113113
module_usb_serial_driver(serial_drivers, id_table);
114114

115+
MODULE_DESCRIPTION("Navman USB Serial driver");
115116
MODULE_LICENSE("GPL v2");

drivers/usb/serial/qcaux.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
8484
};
8585

8686
module_usb_serial_driver(serial_drivers, id_table);
87+
MODULE_DESCRIPTION("Qualcomm USB Auxiliary Serial Port driver");
8788
MODULE_LICENSE("GPL v2");

drivers/usb/serial/spcp8x5.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,6 @@ static const struct usb_device_id id_table[] = {
4949
};
5050
MODULE_DEVICE_TABLE(usb, id_table);
5151

52-
struct spcp8x5_usb_ctrl_arg {
53-
u8 type;
54-
u8 cmd;
55-
u8 cmd_type;
56-
u16 value;
57-
u16 index;
58-
u16 length;
59-
};
60-
61-
6252
/* spcp8x5 spec register define */
6353
#define MCR_CONTROL_LINE_RTS 0x02
6454
#define MCR_CONTROL_LINE_DTR 0x01

drivers/usb/serial/symbolserial.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
190190

191191
module_usb_serial_driver(serial_drivers, id_table);
192192

193+
MODULE_DESCRIPTION("Symbol USB barcode to serial driver");
193194
MODULE_LICENSE("GPL v2");

drivers/usb/serial/usb-serial-simple.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,5 @@ static const struct usb_device_id id_table[] = {
163163
MODULE_DEVICE_TABLE(usb, id_table);
164164

165165
module_usb_serial_driver(serial_drivers, id_table);
166+
MODULE_DESCRIPTION("USB Serial 'Simple' driver");
166167
MODULE_LICENSE("GPL v2");

drivers/usb/serial/usb_debug.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
104104
};
105105

106106
module_usb_serial_driver(serial_drivers, id_table_combined);
107+
MODULE_DESCRIPTION("USB Debug cable driver");
107108
MODULE_LICENSE("GPL v2");

0 commit comments

Comments
 (0)