]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - drivers/usb/host/uhci-hcd.h
[PATCH] UHCI: use integer-sized frame numbers
[mirror_ubuntu-jammy-kernel.git] / drivers / usb / host / uhci-hcd.h
index 04938e64799f93b0a9d0b6bd91119ced27468fb7..c87ceaa178b67470b3594b6061e975978358bdac 100644 (file)
@@ -448,6 +448,9 @@ static inline struct usb_hcd *uhci_to_hcd(struct uhci_hcd *uhci)
 
 #define uhci_dev(u)    (uhci_to_hcd(u)->self.controller)
 
+/* Utility macro for comparing frame numbers */
+#define uhci_frame_before_eq(f1, f2)   (0 <= (int) ((f2) - (f1)))
+
 
 /*
  *     Private per-URB data