mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
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. -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQQHbPq+cpGvN/peuzMLxc3C7H1lCAUCZpUUagAKCRALxc3C7H1l CItIAP9fUATObt8KBw5NPACzMVzZAsJ2p6bs19Sawoc5WVM9QwD+O3RXTx1e4LzA 57YKyYdeqsKWFpg//wuiUJK3mWID0wU= =YVja -----END PGP SIGNATURE----- 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'
This commit is contained in:
commit
3ca06e90a7
|
|
@ -863,4 +863,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
|
|||
|
||||
module_usb_serial_driver(serial_drivers, id_table);
|
||||
|
||||
MODULE_DESCRIPTION("Winchiphead CH341 USB Serial driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ struct garmin_packet {
|
|||
int seq;
|
||||
/* the real size of the data array, always > 0 */
|
||||
int size;
|
||||
__u8 data[];
|
||||
__u8 data[] __counted_by(size);
|
||||
};
|
||||
|
||||
/* structure used to keep the current state of the driver */
|
||||
|
|
@ -267,8 +267,7 @@ static int pkt_add(struct garmin_data *garmin_data_p,
|
|||
|
||||
/* process only packets containing data ... */
|
||||
if (data_length) {
|
||||
pkt = kmalloc(sizeof(struct garmin_packet)+data_length,
|
||||
GFP_ATOMIC);
|
||||
pkt = kmalloc(struct_size(pkt, data, data_length), GFP_ATOMIC);
|
||||
if (!pkt)
|
||||
return 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -1315,4 +1315,5 @@ module_usb_serial_driver(serial_drivers, mxuport_idtable);
|
|||
|
||||
MODULE_AUTHOR("Andrew Lunn <andrew@lunn.ch>");
|
||||
MODULE_AUTHOR("<support@moxa.com>");
|
||||
MODULE_DESCRIPTION("Moxa UPORT USB Serial driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
|
|
|
|||
|
|
@ -112,4 +112,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
|
|||
|
||||
module_usb_serial_driver(serial_drivers, id_table);
|
||||
|
||||
MODULE_DESCRIPTION("Navman USB Serial driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
|
|
@ -84,4 +84,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
|
|||
};
|
||||
|
||||
module_usb_serial_driver(serial_drivers, id_table);
|
||||
MODULE_DESCRIPTION("Qualcomm USB Auxiliary Serial Port driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
|
|
@ -49,16 +49,6 @@ static const struct usb_device_id id_table[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(usb, id_table);
|
||||
|
||||
struct spcp8x5_usb_ctrl_arg {
|
||||
u8 type;
|
||||
u8 cmd;
|
||||
u8 cmd_type;
|
||||
u16 value;
|
||||
u16 index;
|
||||
u16 length;
|
||||
};
|
||||
|
||||
|
||||
/* spcp8x5 spec register define */
|
||||
#define MCR_CONTROL_LINE_RTS 0x02
|
||||
#define MCR_CONTROL_LINE_DTR 0x01
|
||||
|
|
|
|||
|
|
@ -190,4 +190,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
|
|||
|
||||
module_usb_serial_driver(serial_drivers, id_table);
|
||||
|
||||
MODULE_DESCRIPTION("Symbol USB barcode to serial driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
|
|
@ -163,4 +163,5 @@ static const struct usb_device_id id_table[] = {
|
|||
MODULE_DEVICE_TABLE(usb, id_table);
|
||||
|
||||
module_usb_serial_driver(serial_drivers, id_table);
|
||||
MODULE_DESCRIPTION("USB Serial 'Simple' driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
|
|
@ -104,4 +104,5 @@ static struct usb_serial_driver * const serial_drivers[] = {
|
|||
};
|
||||
|
||||
module_usb_serial_driver(serial_drivers, id_table_combined);
|
||||
MODULE_DESCRIPTION("USB Debug cable driver");
|
||||
MODULE_LICENSE("GPL v2");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user