]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: serial: mxuport: update number-of-ports encoding
authorJohan Hovold <johan@kernel.org>
Thu, 7 May 2026 14:11:14 +0000 (16:11 +0200)
committerJohan Hovold <johan@kernel.org>
Mon, 11 May 2026 07:18:08 +0000 (09:18 +0200)
commitb9ea81ec1fd62a3371fe6f9b4c3340a6b2c3daea
treee7442b37b86aa1e070462d740a646f771e868cda
parent5d6919055dec134de3c40167a490f33c74c12581
USB: serial: mxuport: update number-of-ports encoding

In preparation for adding support for 3, 5, 6 and 7 port devices, replace
the current one-bit-per-type encoding of the number of ports with a more
compact four bit encoding (2..16 ports or undefined).

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mxuport.c