]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: storage: add a macro for the upper limit of max LUN
authorDingyan Li <18500469033@163.com>
Wed, 30 Oct 2024 08:38:58 +0000 (16:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2024 15:33:54 +0000 (16:33 +0100)
commitd8d936c51388442f769a81e512b505dcf87c6a51
tree89f7d2226ef9cc65624c52c8edff27076a30fad6
parent3b56774fa25d46bd2ff3707546e30829f52dde9e
usb: storage: add a macro for the upper limit of max LUN

The meaning of this value is already used in several places,
but with constant values and comments to explain it separately.
It's better to have a central place to do this then use the macro
in those places for better readability.

Signed-off-by: Dingyan Li <18500469033@163.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20241030083858.46907-1-18500469033@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_tcm.c
drivers/usb/gadget/function/storage_common.h
drivers/usb/storage/transport.c
include/linux/usb/storage.h