Commit 4d8f3c086c for qemu.org
commit 4d8f3c086c9af045c5ce5e60da0ac19535759756
Author: Jamin Lin <jamin_lin@aspeedtech.com>
Date: Wed Mar 11 08:26:17 2026 +0100
hw/usb/hcd-ehci.h: Fix coding style issues reported by checkpatch
No functional change.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20260424080508.53992-4-jamin_lin@aspeedtech.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/hw/usb/hcd-ehci.h b/hw/usb/hcd-ehci.h
index 3aec0e047c..736407fd52 100644
--- a/hw/usb/hcd-ehci.h
+++ b/hw/usb/hcd-ehci.h
@@ -43,7 +43,8 @@ typedef struct EHCIPacket EHCIPacket;
typedef struct EHCIQueue EHCIQueue;
typedef struct EHCIState EHCIState;
-/* EHCI spec version 1.0 Section 3.3
+/*
+ * EHCI spec version 1.0 Section 3.3
*/
typedef struct EHCIitd {
uint32_t next;
@@ -74,7 +75,8 @@ typedef struct EHCIitd {
#define ITD_BUFPTR_MULT_SH 0
} EHCIitd;
-/* EHCI spec version 1.0 Section 3.4
+/*
+ * EHCI spec version 1.0 Section 3.4
*/
typedef struct EHCIsitd {
uint32_t next; /* Standard next link pointer */
@@ -118,7 +120,8 @@ typedef struct EHCIsitd {
uint32_t backptr; /* Standard next link pointer */
} EHCIsitd;
-/* EHCI spec version 1.0 Section 3.5
+/*
+ * EHCI spec version 1.0 Section 3.5
*/
typedef struct EHCIqtd {
uint32_t next; /* Standard next link pointer */
@@ -148,7 +151,8 @@ typedef struct EHCIqtd {
#define QTD_BUFPTR_SH 12
} EHCIqtd;
-/* EHCI spec version 1.0 Section 3.6
+/*
+ * EHCI spec version 1.0 Section 3.6
*/
typedef struct EHCIqh {
uint32_t next; /* Standard next link pointer */
@@ -230,7 +234,8 @@ struct EHCIQueue {
int async;
int transact_ctr;
- /* cached data from guest - needs to be flushed
+ /*
+ * cached data from guest - needs to be flushed
* when guest removes an entry (doorbell, handshake sequence)
*/
EHCIqh qh; /* copy of current QH (being worked on) */
@@ -268,7 +273,7 @@ struct EHCIState {
*/
uint8_t caps[CAPA_SIZE];
union {
- uint32_t opreg[0x44/sizeof(uint32_t)];
+ uint32_t opreg[0x44 / sizeof(uint32_t)];
struct {
uint32_t usbcmd;
uint32_t usbsts;