diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-12-23 08:40:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-30 13:16:13 +0100 |
commit | db3e8244bd1c46f5a416fd1e6821036ecc59884a (patch) | |
tree | 69ec768ca08f8976d8191532ae33633b3a02651b /drivers/usb | |
parent | 510a0bdb2bfcff8d7be822c72adc3add7a97d559 (diff) | |
download | linux-stable-db3e8244bd1c46f5a416fd1e6821036ecc59884a.tar.gz linux-stable-db3e8244bd1c46f5a416fd1e6821036ecc59884a.tar.bz2 linux-stable-db3e8244bd1c46f5a416fd1e6821036ecc59884a.zip |
usb: dwc2: Simplify a bitmap declaration
Use DECLARE_BITMAP() instead of hand writing it.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/a2bf604d26dbe9816fdaae0faf4b4837ecacc6d3.1640245180.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/dwc2/core.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/core.h b/drivers/usb/dwc2/core.h index e2fe64239328..8a63da3ab39d 100644 --- a/drivers/usb/dwc2/core.h +++ b/drivers/usb/dwc2/core.h @@ -1154,8 +1154,7 @@ struct dwc2_hsotg { struct list_head periodic_sched_queued; struct list_head split_order; u16 periodic_usecs; - unsigned long hs_periodic_bitmap[ - DIV_ROUND_UP(DWC2_HS_SCHEDULE_US, BITS_PER_LONG)]; + DECLARE_BITMAP(hs_periodic_bitmap, DWC2_HS_SCHEDULE_US); u16 periodic_qh_count; bool new_connection; |