]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
uapi: cdc.h: cleanly provide for more interfaces and countries
authorOliver Neukum <oneukum@suse.com>
Tue, 11 Nov 2025 13:46:10 +0000 (14:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 14:12:12 +0000 (15:12 +0100)
commita67df6d1b939ca98e1ad403f53e3ee57299b8c44
tree240973fd9aa297d11036e368cfc5875d01ea8bbe
parent8d3c283ef80950532500f017a80a00a83e8cce0f
uapi: cdc.h: cleanly provide for more interfaces and countries

The spec requires at least one interface respectively country.
It allows multiple ones. This needs to be clearly said in the UAPI.
This is subject to sanity checking in cdc_parse_cdc_header(), thus
we can trust the length.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://patch.msgid.link/20251111134641.4118827-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/cdc-acm.c
include/uapi/linux/usb/cdc.h