usb: core: Remove the useless struct usb_devmap which is just a bitmap
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 4 May 2024 09:47:05 +0000 (11:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 May 2024 16:23:03 +0000 (18:23 +0200)
commit562be61b35d911a8b45acc3dcf8642876dbb66dd
tree8e2b1b8ce862263398c00b89717ccff69eb7b9cd
parent8bbe44ce6543830c520a6424d388ed70e1baae95
usb: core: Remove the useless struct usb_devmap which is just a bitmap

struct usb_devmap is really just a bitmap. No need to have a dedicated
structure for that.

Simplify code and use DECLARE_BITMAP() directly instead.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/1d818575ff7a1e8317674aecf761ee23c89fdc84.1714815990.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hcd.c
drivers/usb/core/hub.c
include/linux/usb.h